change: migrated from python image to alpine image
All checks were successful
/ update (push) Successful in 0s

This commit is contained in:
ahoemann 2025-01-16 07:06:05 +00:00
parent c2bb0cc6cc
commit b39983777b

View file

@ -1,6 +1,12 @@
FROM python FROM alpine:latest
WORKDIR /app WORKDIR /opt/
COPY . .
RUN pip install -r requirements.txt RUN apk add git python3
CMD ["waitress-serve", "--listen=0.0.0.0:8080", "app:app"] 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 EXPOSE 8080
CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]