Files
liederwahl/Dockerfile
Matthias Weber 02cfa4b218 Create Dockerfile
2024-07-02 15:41:52 +02:00

16 lines
343 B
Docker

FROM python:3.11
WORKDIR /code
COPY ./requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
COPY ./app /code/app
COPY ./static /code/static
COPY ./templates /code/templates
RUN echo "first_run" > "/tmp/first_run"
CMD ["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "80"]