Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -7
Dockerfile
CHANGED
@@ -4,6 +4,7 @@ RUN apt-get update && apt-get install -y \
|
|
4 |
build-essential \
|
5 |
python3.9 \
|
6 |
python3-pip \
|
|
|
7 |
libssl-dev \
|
8 |
libffi-dev \
|
9 |
git \
|
@@ -14,6 +15,9 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
python3-dev \
|
15 |
&& rm -rf /var/lib/apt/lists/*
|
16 |
|
|
|
|
|
|
|
17 |
# Create a non-root user
|
18 |
RUN useradd -m -u 1000 user
|
19 |
|
@@ -28,12 +32,9 @@ RUN git clone https://github.com/google/RB-Modulation.git $HOME/app
|
|
28 |
# Set the working directory
|
29 |
WORKDIR $HOME/app
|
30 |
|
31 |
-
#
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
# Install Gradio
|
36 |
-
RUN pip install --no-cache-dir gradio
|
37 |
|
38 |
# Command to run the Gradio app
|
39 |
-
CMD ["
|
|
|
4 |
build-essential \
|
5 |
python3.9 \
|
6 |
python3-pip \
|
7 |
+
python3-venv \
|
8 |
libssl-dev \
|
9 |
libffi-dev \
|
10 |
git \
|
|
|
15 |
python3-dev \
|
16 |
&& rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
+
# Create a symlink for python
|
19 |
+
RUN ln -s /usr/bin/python3 /usr/bin/python
|
20 |
+
|
21 |
# Create a non-root user
|
22 |
RUN useradd -m -u 1000 user
|
23 |
|
|
|
32 |
# Set the working directory
|
33 |
WORKDIR $HOME/app
|
34 |
|
35 |
+
# Upgrade pip and install Gradio
|
36 |
+
RUN python3 -m pip install --upgrade pip && \
|
37 |
+
python3 -m pip install --no-cache-dir gradio
|
|
|
|
|
|
|
38 |
|
39 |
# Command to run the Gradio app
|
40 |
+
CMD ["python3", "app.py"]
|