Adrianux.net/Containerfile
ahoemann a6aae99ed0
All checks were successful
/ update (push) Successful in 0s
feat: set urls via environment variables; removed: configuration parser
2025-01-17 08:29:25 +01:00

15 lines
423 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" ]