mirror of
https://github.com/kevin-DL/fast_api_api_template.git
synced 2026-01-11 01:34:29 +00:00
Attempt at a dockerfile
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM python:3.10-alpine
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
COPY ./requirements.txt /code/requirements.txt
|
||||
|
||||
#
|
||||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||
|
||||
#
|
||||
COPY . /code/app
|
||||
|
||||
|
||||
ENTRYPOINT ["alembic", "upgrade", "head"]
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
|
||||
Reference in New Issue
Block a user