mirror of
https://github.com/rjNemo/docker_examples
synced 2026-06-06 18:46:42 +00:00
12 lines
No EOL
210 B
Docker
12 lines
No EOL
210 B
Docker
FROM python:3.10-slim
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY Pipfile* .
|
|
RUN pip install pipenv
|
|
RUN pipenv install --system --deploy --ignore-pipfile
|
|
|
|
COPY . .
|
|
CMD uvicorn main:app --host 0.0.0.0 --port 80 |