From b39983777b32190cb71644cfacb74d1ab8723334 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Thu, 16 Jan 2025 07:06:05 +0000 Subject: [PATCH] change: migrated from python image to alpine image --- Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index da73878..e2d6699 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ -FROM python -WORKDIR /app -COPY . . -RUN pip install -r requirements.txt -CMD ["waitress-serve", "--listen=0.0.0.0:8080", "app:app"] +FROM alpine:latest +WORKDIR /opt/ + +RUN apk add git python3 +RUN git clone https://git.adrianux.net/ahoemann/Adrianux.net.git /opt +RUN python3 -m venv /opt/.venv +RUN /opt/.venv/bin/pip install -r requirements.txt +RUN apk del git + EXPOSE 8080 + +CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ] \ No newline at end of file