Skip to content

Commit 298060a

Browse files
committed
fix(docker): set entrypoint and cmd properly
1 parent 9297afa commit 298060a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ FROM gcr.io/distroless/static
1919
COPY --from=builder /tmp/smallblog /go/bin/smallblog
2020
COPY templates ./templates
2121
COPY assets ./assets
22-
ENTRYPOINT ["/go/bin/smallblog", "--server.host=0.0.0.0"]
22+
ENTRYPOINT ["/go/bin/smallblog"]
23+
CMD ["serve", "--server.host=0.0.0.0", "--server.port=8000"]

Dockerfile.pack

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ FROM gcr.io/distroless/static
2020
COPY --from=builder /tmp/smallblog /go/bin/smallblog
2121
COPY templates ./templates
2222
COPY assets ./assets
23-
ENTRYPOINT ["/go/bin/smallblog", "--server.host=0.0.0.0"]
23+
ENTRYPOINT ["/go/bin/smallblog"]
24+
CMD ["serve", "--server.host=0.0.0.0", "--server.port=8000"]

0 commit comments

Comments
 (0)