Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
27 lines (17 loc) · 599 Bytes

File metadata and controls

27 lines (17 loc) · 599 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# build stage
FROM python:3.8.3-slim-buster as build
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
WORKDIR /app
COPY ./app /app/app
COPY pyproject.toml poetry.lock /app/
RUN pip install --no-cache-dir poetry
RUN poetry export -f requirements.txt > requirements.txt
RUN pip install --user -r requirements.txt
# runner stage
FROM python:3.8.3-slim-buster as run
WORKDIR /app
COPY --from=build /root/.local /root/.local
COPY ./app /app/app
EXPOSE 80
ENV PATH=/root/.local/bin:$PATH
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080", "--proxy-headers", "--forwarded-allow-ips", "*"]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.