Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
#
|
21 |
-
|
|
|
|
|
|
|
22 |
|
23 |
# Command to run the application
|
24 |
-
CMD ["
|
|
|
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"]
|