-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 635 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 635 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
25
# This is a dockerfile for FastAPI server deployments
# Project: https://gitlab.com/richardnagy/container-environments/server-deployments
FROM python:3.10
# Expose api ports (http, https)
EXPOSE 80 443
# Move source (except files in .dockerignore)
WORKDIR /app
COPY . .
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
#RUN pip install --no-cache-dir --upgrade -r pip.lock
# Start command
ENTRYPOINT [ "uvicorn", "server:app", ]
CMD [ "--host", "0.0.0.0", "--port", "80" ]
#ENTRYPOINT [ "python3", "server.py" ]
#CMD [ "0.0.0.0", "80" ]
#ENTRYPOINT [ "python3", "." ]
#CMD [ "0.0.0.0", "80" ]