kugogt commited on
Commit
936b111
·
verified ·
1 Parent(s): 2cb680e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # This ENV var tells Debian-based images like this one to be non-interactive.
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Set the working directory
7
+ WORKDIR /code
8
+
9
+ # Copy just the requirements file to leverage Docker cache
10
+ COPY requirements.txt .
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy the rest of the application
16
+ COPY . .
17
+
18
+ # This command will be run when the container starts
19
+ CMD ["python", "app.py"]