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.

36 lines
951 B

FROM node:14-alpine
5 years ago
COPY ./wg_dashboard_frontend /tmp/build
WORKDIR /tmp/build
RUN apk add --no-cache build-base python3-dev && \
npm install && npm install -g @angular/cli && \
ng build --configuration="production" && \
rm -rf node_modules && \
apk del build-base python3-dev
5 years ago
FROM alpine:3.12
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 ip6tables
5 years ago
COPY wg_dashboard_backend /app
ENV LIBRARY_PATH=/lib:/usr/lib
# Install dependencies
RUN apk add --no-cache build-base python3-dev libffi-dev jpeg-dev zlib-dev && \
pip3 install uvicorn && \
pip3 install -r requirements.txt && \
apk del build-base python3-dev libffi-dev jpeg-dev zlib-dev
# Copy startup scripts
COPY docker/ ./startup
RUN chmod 700 ./startup/start.py
5 years ago
# Copy build files from previous step
5 years ago
COPY --from=0 /tmp/build/dist /app/build
ENTRYPOINT python3 startup/start.py