From ea87ea5ffbd3b470706d66864d722f6f2405c24d Mon Sep 17 00:00:00 2001 From: James Batt Date: Wed, 11 Mar 2020 17:07:34 +1100 Subject: [PATCH] dockerfile update --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec1f3728..c5315044 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -### Build stage for the website frontend +### Build stage for the website frontend FROM node:10 as website WORKDIR /code @@ -35,17 +35,18 @@ COPY ./internal/ ./internal RUN go build -o server -### Server +### Server FROM alpine:3.10 -# Environment variable -ENV CONFIG="/config.yaml" -ENV STORAGE_DIRECTORY="/data" - +# Dependencies and tools RUN apk add iptables RUN apk add wireguard-tools RUN apk add curl +# Environment variable +ENV CONFIG="/config.yaml" +ENV STORAGE_DIRECTORY="/data" + # Copy the final build for the frontend and backend COPY --from=server /code/server /server COPY --from=website /code/build /website/build