angeloqq commited on
Commit
6424085
·
verified ·
1 Parent(s): 88905f6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -8,17 +8,18 @@ WORKDIR /
8
  RUN mkdir -p /.EasyOCR/model && \
9
  chmod -R 777 /.EasyOCR
10
 
11
- # Copy the dependencies file to the working directory
12
- COPY requirements.txt .
13
-
14
  # Install any dependencies
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Copy the rest of the application code to the working directory
18
  COPY . .
19
 
20
- # Expose the port your app runs on
21
- EXPOSE 8000
 
 
 
22
 
23
  # Command to run the application
24
- CMD ["python", "app/app.py"]
 
8
  RUN mkdir -p /.EasyOCR/model && \
9
  chmod -R 777 /.EasyOCR
10
 
 
 
 
11
  # Install any dependencies
12
+ COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  # Copy the rest of the application code to the working directory
16
  COPY . .
17
 
18
+ # Install Ngrok
19
+ RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \
20
+ unzip ngrok-stable-linux-amd64.zip && \
21
+ mv ngrok /usr/local/bin/ngrok && \
22
+ rm ngrok-stable-linux-amd64.zip
23
 
24
  # Command to run the application
25
+ CMD ["sh", "-c", "python app/app.py & ngrok http 8000"]