2025-01-16 07:06:05 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /opt/
|
|
|
|
|
2025-01-17 07:35:14 +00:00
|
|
|
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
|
2025-01-16 07:06:05 +00:00
|
|
|
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
|
2025-01-16 07:06:05 +00:00
|
|
|
RUN apk del git
|
|
|
|
|
2024-12-06 07:09:40 +00:00
|
|
|
EXPOSE 8080
|
2025-01-16 07:06:05 +00:00
|
|
|
|
2025-01-17 07:29:25 +00:00
|
|
|
CMD [ "/opt/.venv/bin/waitress-serve", "--listen=0.0.0.0:8080", "app:app" ]
|