1
0
Fork 0
mirror of synced 2024-12-22 14:31:06 -05:00
openvpn-user/Dockerfile

7 lines
268 B
Docker
Raw Normal View History

2021-02-05 05:18:05 -05:00
FROM golang:1.14.2-buster AS builder
2021-02-05 01:37:12 -05:00
COPY . /app
2021-02-19 01:45:26 -05:00
RUN cd /app && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags='-linkmode external -extldflags "-static" -s -w' -o openvpn-user
2021-02-05 01:37:12 -05:00
2021-02-05 05:18:05 -05:00
FROM alpine:3.13
WORKDIR /app
COPY --from=builder /app/openvpn-user /usr/local/bin