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

Fix packr path dependency

This commit is contained in:
Sebastien Malot 2021-11-23 08:57:11 +01:00
parent 1b421070cb
commit b378ae17dd

View file

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