We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477234e commit bfa6ed1Copy full SHA for bfa6ed1
Dockerfile
@@ -1,12 +1,13 @@
1
-FROM golang:1.18.2-alpine3.16 as builder
+FROM golang:1.24-alpine3.21 AS builder
2
3
WORKDIR /code/
4
5
ADD src/ .
6
7
RUN go build -o dist/ -ldflags "-s -w"
8
9
-FROM alpine:3.16
+FROM alpine:3.21
10
+
11
12
13
COPY docker-entrypoint.sh /bin/
@@ -15,4 +16,4 @@ ENTRYPOINT ["/bin/docker-entrypoint.sh"]
15
16
COPY --from=builder /code/dist/go-http-server /bin/
17
RUN chmod +x /bin/go-http-server
18
-CMD "/bin/go-http-server"
19
+CMD ["/bin/go-http-server"]
0 commit comments