patrickacraig commited on
Commit
8378fba
·
1 Parent(s): c60e867
Files changed (2) hide show
  1. Dockerfile +20 -0
  2. requirements.txt +1 -3
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.11-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install any needed packages specified in requirements.txt
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Make port 7860 available to the world outside this container
14
+ EXPOSE 7860
15
+
16
+ # Define environment variable
17
+ ENV NAME DocsScraper
18
+
19
+ # Run app.py when the container launches
20
+ CMD ["python", "app.py"]
requirements.txt CHANGED
@@ -16,9 +16,7 @@ cffi
16
  charset-normalizer
17
  click
18
  colorama
19
- conda-libmamba-solver
20
- conda-package-handling
21
- conda_package_streaming
22
  contourpy==1.3.0
23
  cryptography
24
  cycler==0.12.1
 
16
  charset-normalizer
17
  click
18
  colorama
19
+
 
 
20
  contourpy==1.3.0
21
  cryptography
22
  cycler==0.12.1