Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Commit
•
318c2a2
1
Parent(s):
aa67972
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -5,7 +5,7 @@ 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 /code/uploads && chmod 755 /code/uploads
|
11 |
|
@@ -15,4 +15,7 @@ COPY . /code
|
|
15 |
|
16 |
# Add and use a non-root user
|
17 |
RUN useradd -ms /bin/sh myuser
|
|
|
18 |
USER myuser
|
|
|
|
|
|
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 |
|
|
|
15 |
|
16 |
# Add and use a non-root user
|
17 |
RUN useradd -ms /bin/sh myuser
|
18 |
+
RUN chown -R myuser:myuser /code
|
19 |
USER myuser
|
20 |
+
|
21 |
+
CMD ["python", "app.py"]
|