-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 620 Bytes
/
Dockerfile
File metadata and controls
24 lines (16 loc) · 620 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# docker build -t githubapp .
# docker run --rm -it -p 8080:8080 githubapp
FROM python:3.14
ARG APP_HOME=/app
WORKDIR $APP_HOME
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
COPY Pipfile Pipfile.lock ${APP_HOME}/
RUN pip install --root-user-action ignore pipenv
RUN pipenv install --deploy --ignore-pipfile
COPY . ${APP_HOME}/
EXPOSE 8080
WORKDIR ${APP_HOME}/src
RUN printf "build_time=%s\n" "$(date -u +%d/%m/%Y_%H:%M)" > settings.ini
# https://www.geeksforgeeks.org/python/fastapi-uvicorn/
CMD ["pipenv", "run", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--reload"]