nyanya
commited on
Commit
•
5845274
1
Parent(s):
e870749
fix
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -137,16 +137,17 @@ RUN --mount=target=/root/packages.txt,source=packages.txt \
|
|
137 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
|
138 |
bash /root/on_startup.sh
|
139 |
|
|
|
|
|
|
|
|
|
|
|
140 |
#######################################
|
141 |
# End root user section
|
142 |
#######################################
|
143 |
|
144 |
USER user
|
145 |
|
146 |
-
# NPM Global
|
147 |
-
RUN --mount=target=/root/npm_packages.txt,source=npm_packages.txt \
|
148 |
-
xargs -r -a /root/npm_packages.txt /usr/bin/npm install -g
|
149 |
-
|
150 |
# Python packages
|
151 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
152 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
137 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
|
138 |
bash /root/on_startup.sh
|
139 |
|
140 |
+
# NPM Global
|
141 |
+
RUN --mount=target=/root/npm_packages.txt,source=npm_packages.txt \
|
142 |
+
xargs -r -a /root/npm_packages.txt /usr/bin/npm install -g
|
143 |
+
|
144 |
+
|
145 |
#######################################
|
146 |
# End root user section
|
147 |
#######################################
|
148 |
|
149 |
USER user
|
150 |
|
|
|
|
|
|
|
|
|
151 |
# Python packages
|
152 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
153 |
pip install --no-cache-dir --upgrade -r requirements.txt
|