SmokeyBandit commited on
Commit
91a9f3f
·
verified ·
1 Parent(s): da5a93a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install any system dependencies if needed
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ build-essential && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ # Copy your code into the container
9
+ COPY requirements.txt /app/requirements.txt
10
+ WORKDIR /app
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy the main script
14
+ COPY main.py /app/main.py
15
+
16
+ # Run your script
17
+ CMD ["python", "main.py"]