Add docker image
This commit is contained in:
parent
c13b08ec8b
commit
b42a5d333d
3 changed files with 10 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
FROM python:3.9-alpine
|
||||||
|
RUN mkdir /duplicati_exporter
|
||||||
|
RUN apk add --no-cache --virtual .build-deps alpine-sdk linux-headers
|
||||||
|
COPY ./src /duplicati_exporter
|
||||||
|
RUN cd /duplicati_exporter && pip install --no-cache-dir -r requirements.txt
|
||||||
|
RUN apk del .build-deps
|
||||||
|
EXPOSE 5000
|
||||||
|
ENV FLASK_RUN_HOST=0.0.0.0
|
||||||
|
ENV FLASK_ENV=production
|
||||||
|
CMD cd /duplicati_exporter && python -m flask run
|
Loading…
Reference in a new issue