1
0
Fork 0
mirror of synced 2024-11-22 00:35:36 -05:00

Update Dockerfile

This commit is contained in:
Ilya Sosnovsky 2021-03-01 12:22:07 +03:00 committed by GitHub
parent 4f5847f7c2
commit bcd7b9ee62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ RUN cd /app && npm install && npm run build
FROM golang:1.14.2-buster AS backend-builder FROM golang:1.14.2-buster AS backend-builder
COPY --from=frontend-builder /app/static /app/frontend/static COPY --from=frontend-builder /app/static /app/frontend/static
COPY . /app COPY . /app
RUN go get -u github.com/gobuffalo/packr/v2/packr2 && cd /app && packr2 && env CGO_ENABLED=./1 GOOS=linux GOARCH=amd64 go build -ldflags='-linkmode external -extldflags "-static" -s -w' -o openvpn-admin && packr2 clean RUN go get -u github.com/gobuffalo/packr/v2/packr2 && cd /app && packr2 && env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags='-linkmode external -extldflags "-static" -s -w' -o openvpn-admin && packr2 clean
FROM alpine:3.13 FROM alpine:3.13
WORKDIR /app WORKDIR /app