From 0fc800ed78bc9aa7062260b1b574bcfd624de980 Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Mon, 14 Nov 2022 17:32:55 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a6c5ceb..d160bf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,8 @@ -FROM python:3.7.4-alpine3.10 +FROM python:3.10-alpine -ADD exporter exporter/ -ADD requirements.txt exporter/requirements.txt - -WORKDIR exporter - -RUN pip install -r requirements.txt +COPY dist/ /tmp/ +RUN pip install --no-cache-dir /tmp/status_cake_exporter*.whl EXPOSE 8000 -CMD ["python", "app.py"] \ No newline at end of file +ENTRYPOINT ["status-cake-exporter"]