Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -5
Dockerfile
CHANGED
@@ -7,11 +7,14 @@ RUN apt-get update && \
|
|
7 |
wget curl procps \
|
8 |
htop vim nano && \
|
9 |
rm -rf /var/lib/apt/lists/*
|
10 |
-
RUN useradd -m -u 1000 user
|
11 |
-
USER user
|
12 |
-
ENV HOME=/home/user \
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
RUN chown 1000 $HOME/app
|
16 |
USER 1000
|
17 |
COPY --chown=user . $HOME/app
|
|
|
7 |
wget curl procps \
|
8 |
htop vim nano && \
|
9 |
rm -rf /var/lib/apt/lists/*
|
10 |
+
# RUN useradd -m -u 1000 user
|
11 |
+
# USER user
|
12 |
+
# ENV HOME=/home/user \
|
13 |
+
# PATH=/home/user/.local/bin:$PATH
|
14 |
+
|
15 |
+
WORKDIR /app
|
16 |
+
COPY --link ./ /app
|
17 |
+
RUN npm i
|
18 |
RUN chown 1000 $HOME/app
|
19 |
USER 1000
|
20 |
COPY --chown=user . $HOME/app
|