refactoring into single directory and fixing docker

This commit is contained in:
venus
2026-03-04 15:47:53 -06:00
parent 0834ddc9cb
commit 22ecd5eff5
8 changed files with 51 additions and 17 deletions

View File

@@ -2,20 +2,20 @@ FROM python:3.10-slim AS builder
ARG DEBUG_MODE=0
ENV FLASK_DEBUG=$DEBUG_MODE
ENV FLASK_APP=app
ENV FLASK_APP=app.py
WORKDIR /app
COPY requirements.txt .
COPY requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
EXPOSE 443
ENTRYPOINT ["flask"]
CMD ["run", "--host=0.0.0.0", "--port=80"]
# CMD ["--app", ".", "run", "--host=0.0.0.0", "--port=443"]
# CMD [ "run", "--host=0.0.0.0", "--port=80"]
CMD ["--app", "app", "run", "--host=0.0.0.0", "--port=443"]