Adrianux.net/Containerfile

17 lines
439 B
Text
Raw Permalink Normal View History

FROM alpine:latest
WORKDIR /opt/
ENV GIT_URL=https://git.adrianux.net
ENV WEBSITE_URL=https://adrianux.net
ENV DEBUG_MODE=False
2025-01-16 07:09:57 +00:00
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
2025-01-23 07:17:21 +00:00
RUN /opt/.venv/bin/pip install --no-cache-dir -r requirements.txt
RUN apk del git
2024-12-06 07:09:40 +00:00
EXPOSE 8080
CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]