rkihacker commited on
Commit
1c919ad
·
verified ·
1 Parent(s): f71dc21

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY main.py .
9
+
10
+ # Make port 8000 available to the world outside this container
11
+ EXPOSE 8000
12
+
13
+ # Run the app. CMD is used to run the main command of the container
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]