Spaces:
Running
Running
Joffrey Thomas
commited on
Commit
·
d74e5a2
1
Parent(s):
d0b2a3c
docker
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -12,6 +12,9 @@ RUN apt-get update && \
|
|
12 |
apt-get install -y nodejs && \
|
13 |
rm -rf /var/lib/apt/lists/*
|
14 |
|
|
|
|
|
|
|
15 |
# Copy requirements file first to leverage Docker cache
|
16 |
COPY --chown=appuser:appgroup requirements.txt .
|
17 |
|
|
|
12 |
apt-get install -y nodejs && \
|
13 |
rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
+
# Configure npm to use a cache directory writable by appuser
|
16 |
+
ENV NPM_CONFIG_CACHE /app/.npm
|
17 |
+
|
18 |
# Copy requirements file first to leverage Docker cache
|
19 |
COPY --chown=appuser:appgroup requirements.txt .
|
20 |
|