Adrianux.net/Containerfile
ahoemann 4f73502d00
All checks were successful
/ update (push) Successful in 0s
fix: set default environment variables names
2025-01-17 08:35:14 +01:00

16 lines
424 B
Docker

FROM alpine:latest
WORKDIR /opt/
ENV GIT_URL=https://git.adrianux.net
ENV WEBSITE_URL=https://adrianux.net
ENV DEBUG_MODE=False
RUN apk add --no-cache 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" ]