nprime commited on
Commit
e9b3258
·
verified ·
1 Parent(s): d750856

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ # Set the working directory inside the container
8
+ WORKDIR /app
9
+
10
+ # Clone the repo to current directory
11
+ RUN git clone https://github.com/nishantprime/WebProxy.git .
12
+
13
+ # Install Python dependencies listed in requirements.txt
14
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
+
16
+ # Copy the rest of the application code from the host to the container
17
+ COPY --chown=user . /app
18
+
19
+ # Specify the command to run the application with Gunicorn
20
+ CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860"]