forked from perara/wg-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 758 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM node
COPY ./wg_dashboard_frontend /tmp/build
WORKDIR /tmp/build
RUN npm install && npm install -g @angular/cli
RUN ng build --configuration="production"
FROM alpine:latest
MAINTAINER per@sysx.no
ENV IS_DOCKER True
WORKDIR /app
# Install dependencies
RUN apk add --no-cache --update wireguard-tools py3-gunicorn python3 py3-pip
COPY wg_dashboard_backend /app
# Install dependencies
RUN apk add --no-cache build-base python3-dev libffi-dev && \
pip3 install uvicorn && \
pip3 install -r requirements.txt && \
apk del build-base python3-dev libffi-dev
# Copy startup scripts
COPY docker/ ./startup
RUN chmod 700 ./startup/start.py
# Copy build files from previous step
COPY --from=0 /tmp/build/dist /app/build
ENTRYPOINT python3 startup/start.py