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