Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -8,12 +8,12 @@ RUN apt-get update && \
|
|
| 8 |
htop vim nano && \
|
| 9 |
rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
-
|
| 12 |
-
WORKDIR /app
|
| 13 |
-
COPY --link ./ /app
|
| 14 |
-
RUN npm i
|
| 15 |
-
|
| 16 |
# The base image already creates a user with 1000, no need to call useradd
|
| 17 |
-
RUN
|
| 18 |
USER 1000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
CMD ["node", "index.js"]
|
|
|
|
| 8 |
htop vim nano && \
|
| 9 |
rm -rf /var/lib/apt/lists/*
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# The base image already creates a user with 1000, no need to call useradd
|
| 12 |
+
# RUN useradd -m -u 1000 user
|
| 13 |
USER 1000
|
| 14 |
+
WORKDIR /app
|
| 15 |
+
|
| 16 |
+
COPY --chown=user --link ./ /app
|
| 17 |
+
RUN npm i
|
| 18 |
+
|
| 19 |
CMD ["node", "index.js"]
|