Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Commit
•
6263425
1
Parent(s):
0465d18
Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
@@ -5,11 +5,16 @@ RUN apt-get update && apt-get install -y \
|
|
5 |
libgl1-mesa-glx \
|
6 |
libglib2.0-0 \
|
7 |
&& rm -rf /var/lib/apt/lists/*
|
8 |
-
|
9 |
WORKDIR /code
|
10 |
-
RUN mkdir -p /
|
11 |
|
12 |
COPY ./requirements.txt /code/requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
COPY . /code
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
5 |
libgl1-mesa-glx \
|
6 |
libglib2.0-0 \
|
7 |
&& rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
WORKDIR /code
|
10 |
+
RUN mkdir -p /code/uploads && chmod 755 /code/uploads
|
11 |
|
12 |
COPY ./requirements.txt /code/requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
COPY . /code
|
15 |
+
|
16 |
+
# Optionally, you can add a specific user
|
17 |
+
# RUN useradd -ms /bin/sh myuser
|
18 |
+
# USER myuser
|
19 |
+
|
20 |
+
CMD ["python", "app.py"]
|