Merge pull request #5 from fishcakeday/update-dockerfile-dependencies

Update dockerfile dependencies
This commit is contained in:
believethehype
2023-04-06 09:54:35 +02:00
committed by GitHub
+5 -3
View File
@@ -1,15 +1,17 @@
FROM golang:1.16.0-alpine AS builder
FROM golang:1.20-alpine AS builder
WORKDIR /opt/buid
COPY ./*.go ./*.html ./go.mod ./go.sum ./
COPY static ./static
RUN apk add gcc musl-dev linux-headers
RUN apk update && \
apk upgrade --available && \
apk add gcc musl-dev linux-headers
RUN go get
RUN go build
FROM alpine:3.14
FROM alpine:3.17
ENV PORT=17422
ENV DOMAIN=satdress.com