Skip to content

Commit

Permalink
dockerfile update
Browse files Browse the repository at this point in the history
  • Loading branch information
Place1 committed Mar 11, 2020
1 parent 47893ca commit ea87ea5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Build stage for the website frontend
### Build stage for the website frontend
FROM node:10 as website

WORKDIR /code
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ea87ea5

Please sign in to comment.