SatCat commited on
Commit
5b2898d
·
verified ·
1 Parent(s): 638a18b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # pull official base image
2
+ FROM python:3.9.5-slim-buster
3
+
4
+ # set work directory
5
+ WORKDIR /usr/src/app
6
+
7
+ # install dependencies
8
+ COPY ./requirements.txt .
9
+ RUN pip3 install --upgrade pip wheel \
10
+ && pip3 install -r requirements.txt
11
+
12
+ # copy project
13
+ COPY . .
14
+
15
+ USER root
16
+ EXPOSE 8080
17
+ CMD ["/bin/bash", "-c", "python3 main.py"]