Fixed docker
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.venv
|
||||||
|
__pycache__/
|
||||||
|
.vscode
|
@@ -1,13 +1,13 @@
|
|||||||
FROM python
|
FROM python
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /srv
|
||||||
|
|
||||||
COPY ./requirements.txt /app/requirements.txt
|
COPY ./requirements.txt /srv/requirements.txt
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
COPY ./app /app
|
COPY ./app /srv/app
|
||||||
|
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
|
Reference in New Issue
Block a user