11 lines
272 B
Docker
11 lines
272 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
|
|
|
|
RUN echo "first_run" > "/tmp/first_run"
|
|
|
|
CMD ["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "80", "--reload"] |