Spaces:
Runtime error
Runtime error
Card Cropping
Browse files- Dockerfile +7 -20
Dockerfile
CHANGED
@@ -1,31 +1,18 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# Update base image
|
4 |
-
RUN apt-get update
|
5 |
-
|
6 |
-
# Install apt-utils first
|
7 |
-
RUN apt-get install -y apt-utils
|
8 |
-
|
9 |
-
# Install remaining dependencies
|
10 |
-
RUN apt-get update && \
|
11 |
-
apt-get install -y --no-install-recommends \
|
12 |
-
git \
|
13 |
-
libgl1-mesa-glx \
|
14 |
-
libglib2.0-0 \
|
15 |
-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
16 |
-
|
17 |
-
# Upgrade pip
|
18 |
-
RUN python -m pip install --upgrade pip
|
19 |
|
20 |
# Set the working directory in the container
|
21 |
WORKDIR /app
|
22 |
|
23 |
-
# Copy the
|
24 |
-
COPY . /app
|
25 |
|
26 |
# Install any needed packages specified in requirements.txt
|
27 |
RUN pip install --no-cache-dir -r requirements.txt
|
28 |
|
|
|
|
|
|
|
29 |
|
30 |
# Make port 7860 available to the world outside this container
|
31 |
EXPOSE 7860
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9-slim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy the requirements.txt file into the container at /app
|
8 |
+
COPY requirements.txt /app/
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Copy the rest of the working directory contents into the container at /app
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
|
17 |
# Make port 7860 available to the world outside this container
|
18 |
EXPOSE 7860
|