Skip to content

Commit

Permalink
Make dockerfile use bash instead of alpine
Browse files Browse the repository at this point in the history
Still tests that everything works in musl based distros
but is significantly less annoying to shell into without
making the image large
  • Loading branch information
saolof committed May 22, 2024
1 parent 72bc2d4 commit 722c18f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ COPY . .
# musl being linked statically means the entire binary is portable
RUN CGO=1 CC=musl-gcc go build --ldflags '-linkmode=external -extldflags=-static'

from alpine:latest
from bash:latest

COPY --from=builder /pgxcron/pgxcron /bin/pgxcron
RUN mkdir -p /var/lib
EXPOSE 8035

CMD ["pgxcron", "-databases", "/etc/pgxcron/databases.toml", "-crontab", "/etc/pgxcron/crontab.toml","-historyfile", "/var/lib/pgxcronhistory.db", "-webport","8035"]
Expand Down

0 comments on commit 722c18f

Please sign in to comment.