fix(docker): Switch to alpine baseimage for temp file support
This commit is contained in:
parent
92380802e9
commit
c48a1f855f
@ -8,8 +8,9 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o server
|
RUN CGO_ENABLED=0 GOOS=linux go build -o server
|
||||||
|
|
||||||
FROM scratch
|
FROM alpine:3.18
|
||||||
|
RUN mkdir -p /tmp && chmod 1777 /tmp
|
||||||
|
|
||||||
COPY --from=builder /app/server /server
|
COPY --from=builder /app/server /server
|
||||||
COPY static /static
|
COPY static /static
|
||||||
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/ca-certificates.crt
|
|
||||||
ENTRYPOINT [ "/server" ]
|
ENTRYPOINT [ "/server" ]
|
Loading…
x
Reference in New Issue
Block a user