Create Dockerfile

pull/6/head
Bengt 2021-04-06 12:39:20 +02:00 committed by GitHub
parent 919b344da4
commit 830d43fabf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM python:alpine
MAINTAINER Bengt Fredh "bengt@fredhs.net"
RUN apk update && apk upgrade -a && apk add wireguard-tools
RUN mkdir /wireguard-dashboard
ADD . /wireguard-dashboard/
RUN cd /wireguard-dashboard;pip install --no-cache-dir -r requirements.txt
RUN rm -rf /usr/include /tmp/* /var/cache/apk/*
VOLUME /etc/wireguard
EXPOSE 10086
ENV FLASK_APP dashboard.py
ENV FLASK_RUN_HOST 0.0.0.0
ENV FLASK_ENV development
ENV FLASK_DEBUG 0
WORKDIR /wireguard-dashboard/src
ENTRYPOINT [ "python3" ]
CMD [ "dashboard.py" ]