mirror of
https://github.com/kevin-DL/fast_api_api_template.git
synced 2026-01-11 01:34:29 +00:00
15 lines
289 B
Docker
15 lines
289 B
Docker
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"] |