0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-11-04 17:31:17 +00:00
wg-gen-web/Dockerfile.dev

21 lines
423 B
Docker
Raw Normal View History

2020-02-01 07:08:37 +00:00
FROM golang as build-back
WORKDIR /wg-gen-web
ADD . .
RUN go build -o wg-gen-web-linux-amd64
FROM node:10-alpine as build-front
WORKDIR /ui
ADD ui .
RUN npm install
RUN npm run build
FROM debian:stable-slim
WORKDIR /app
COPY --from=build-back /wg-gen-web/wg-gen-web-linux-amd64 .
COPY --from=build-front /ui/dist ./ui/dist
ADD .env .
RUN chmod +x ./wg-gen-web-linux-amd64
EXPOSE 8080
CMD ["/app/wg-gen-web-linux-amd64"]