8 lines
293 B
Plaintext
8 lines
293 B
Plaintext
|
FROM python:3
|
||
|
WORKDIR /app
|
||
|
COPY ./requirements.txt .
|
||
|
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple
|
||
|
RUN alembic
|
||
|
COPY . .
|
||
|
EXPOSE 8000
|
||
|
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000", "--env-file", "./.prod.env"]
|