Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
ef06905
1
Parent(s):
6573ecd
Add cache
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
@@ -14,6 +14,15 @@ COPY . ./
|
|
14 |
# Install production dependencies.
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
# Run the web service on container startup. Here we use the gunicorn
|
18 |
# webserver, with one worker process and 8 threads.
|
19 |
# For environments with multiple CPU cores, increase the number of workers
|
|
|
14 |
# Install production dependencies.
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
+
RUN useradd -m -u 1000 user
|
18 |
+
USER user
|
19 |
+
ENV HOME=/home/user \
|
20 |
+
PATH=/home/user/.local/bin:$PATH
|
21 |
+
|
22 |
+
WORKDIR $APP_HOME
|
23 |
+
|
24 |
+
COPY --chown=user . $HOME/app
|
25 |
+
|
26 |
# Run the web service on container startup. Here we use the gunicorn
|
27 |
# webserver, with one worker process and 8 threads.
|
28 |
# For environments with multiple CPU cores, increase the number of workers
|