MarkAdamsMSBA24 commited on
Commit
00d2450
1 Parent(s): 94849c1

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +26 -0
dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /usr/src/app
6
+
7
+ # Install any needed packages specified in requirements.txt
8
+ # First, update the system and install system dependencies
9
+ RUN apt-get update && apt-get install -y \
10
+ libpoppler-cpp-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy the current directory contents into the container at /usr/src/app
14
+ COPY . .
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
+ # Define environment variable
23
+ ENV NAME World
24
+
25
+ # Run app.py when the container launches
26
+ CMD ["python", "app.py"]