dashboardvpnsite-to-siteobfuscationwireguard-vpn-setupwireguard-vpnwireguard-tunnelwireguard-dashboardwireguardwg-manager
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
758 B
33 lines
758 B
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
|
|
|
|
|
|
|