Skip to content

Commit 225a934

Browse files
authored
Merge pull request #4 from ImageMarkup/upgrade-go-docker
2 parents edeb263 + dd9230c commit 225a934

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
FROM golang:1.19-buster as builder
2+
FROM golang:1.24-bookworm AS builder
33

44
# Create and change to the app directory.
55
WORKDIR /go/src/github.com/scosman/zipstreamer
@@ -19,10 +19,10 @@ RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -
1919
# Copy the binary to the production image from the builder stage.
2020
COPY --from=builder /go/src/github.com/scosman/zipstreamer/zipstreamer /zipstreamer
2121

22-
# Expose port - shouldn't override PORT env when using docker as server will bind to unexposed port.
23-
# Instead map exposed port 4008 to desired port when running.
22+
# Expose port - shouldn't override PORT env when using docker as server will bind to unexposed port.
23+
# Instead map exposed port 4008 to desired port when running.
2424
# Example to bind to port 80 (assuming image named docker-zs) `docker run -p 127.0.0.1:80:4008/tcp docker-zs`
2525
ENV PORT=4008
2626
EXPOSE 4008
2727

28-
CMD ["/zipstreamer"]
28+
CMD ["/zipstreamer"]

0 commit comments

Comments
 (0)