From dd9230cc9252392dc63f9b39599c5efca67ececb Mon Sep 17 00:00:00 2001 From: Dan LaManna Date: Wed, 2 Jul 2025 16:26:16 -0400 Subject: [PATCH] Upgrade go version in dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac681b6..4e13261 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM golang:1.19-buster as builder +FROM golang:1.24-bookworm AS builder # Create and change to the app directory. WORKDIR /go/src/github.com/scosman/zipstreamer @@ -19,10 +19,10 @@ RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install - # Copy the binary to the production image from the builder stage. COPY --from=builder /go/src/github.com/scosman/zipstreamer/zipstreamer /zipstreamer -# Expose port - shouldn't override PORT env when using docker as server will bind to unexposed port. -# Instead map exposed port 4008 to desired port when running. +# Expose port - shouldn't override PORT env when using docker as server will bind to unexposed port. +# Instead map exposed port 4008 to desired port when running. # Example to bind to port 80 (assuming image named docker-zs) `docker run -p 127.0.0.1:80:4008/tcp docker-zs` ENV PORT=4008 EXPOSE 4008 -CMD ["/zipstreamer"] \ No newline at end of file +CMD ["/zipstreamer"]