1
0
Fork 0
mirror of synced 2024-11-14 13:38:59 -05:00
openvpn-user/Dockerfile
Ilya Sosnovsky 6b60439325 small fixes
2021-02-19 09:45:26 +03:00

7 lines
No EOL
268 B
Docker

FROM golang:1.14.2-buster AS builder
COPY . /app
RUN cd /app && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags='-linkmode external -extldflags "-static" -s -w' -o openvpn-user
FROM alpine:3.13
WORKDIR /app
COPY --from=builder /app/openvpn-user /usr/local/bin