Create Dockerfile
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
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"]
|
||||||
Reference in New Issue
Block a user