marquesafonso commited on
Commit
fb74b34
·
1 Parent(s): 613ae81

add dockerfile

Browse files
Files changed (2) hide show
  1. .dockerignore +8 -0
  2. Dockerfile +23 -0
.dockerignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ .gitignore
2
+ __pycache__/
3
+ data/
4
+ temp/
5
+ cli.py
6
+ Pipfile
7
+ Pipfile.lock
8
+ api_config.yml
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.11.7-slim-bullseye
3
+
4
+ # Set the working directory in the container to /app
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install ImageMagick
11
+ RUN apt-get update && \
12
+ apt-get install -y imagemagick && \
13
+ apt-get clean && \
14
+ rm -rf /var/lib/apt/lists/*
15
+
16
+ # Install any needed packages specified in requirements.txt
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Make port 80 available to the world outside this container
20
+ EXPOSE 80
21
+
22
+ # Run main.py when the container launches
23
+ CMD ["python", "main.py"]