Moved the web app to a separate directory.

This commit is contained in:
2025-12-29 11:57:59 +01:00
parent af3d1fd3cb
commit a1df4dcfdf
8 changed files with 3 additions and 3 deletions

22
app/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM alpine:3.23
RUN apk add --no-cache python3 py3-pip
# Copy requirements and install Python packages
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --break-system-packages -r /tmp/requirements.txt
# Clean up apk cache
RUN rm -rf /var/cache/apk/*
WORKDIR /app
COPY app.py /app/app.py
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV LISTEN_ADDRESS=0.0.0.0
ENV LISTEN_PORT=8080
EXPOSE 8080
ENTRYPOINT [ "/entrypoint.sh" ]