Update Dockerfile
This commit is contained in:
parent
099f7894ff
commit
5985b2f5e3
|
@ -1,9 +1,10 @@
|
||||||
FROM python:alpine
|
FROM python:alpine
|
||||||
RUN apk add --no-cache tini
|
RUN apk add --no-cache tini
|
||||||
|
|
||||||
ADD metrics.py /metrics.py
|
ADD metrics.py /app/metrics.py
|
||||||
ADD requirements.txt /requirements.txt
|
ADD requirements.txt /tmp/requirements.txt
|
||||||
RUN pip install -r /requirements.txt
|
RUN pip install -r /tmp/requirements.txt && \
|
||||||
|
rm -rf /tmp/requirements.txt
|
||||||
|
|
||||||
ENTRYPOINT ["/sbin/tini", "--"]
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
CMD ["python" , "/metrics.py"]
|
CMD ["python" , "/app/metrics.py"]
|
||||||
|
|
Loading…
Reference in New Issue