Spaces:
Running
Running
razzfazz-io
commited on
Commit
•
a7ca8f5
1
Parent(s):
535d435
Fix example dockerfile
Browse filesRemoved double RUN, line 130
Added missing user with ID 1000
README.md
CHANGED
@@ -127,7 +127,7 @@ It then starts a NodeJS application from `/app`.
|
|
127 |
```Dockerfile
|
128 |
FROM node:19-slim
|
129 |
|
130 |
-
RUN
|
131 |
apt-get install -y \
|
132 |
bash \
|
133 |
git git-lfs \
|
@@ -135,6 +135,8 @@ RUN RUN apt-get update && \
|
|
135 |
htop vim nano && \
|
136 |
rm -rf /var/lib/apt/lists/*
|
137 |
|
|
|
|
|
138 |
WORKDIR /app
|
139 |
COPY --link --chown=1000 ./ /app
|
140 |
RUN npm ci
|
|
|
127 |
```Dockerfile
|
128 |
FROM node:19-slim
|
129 |
|
130 |
+
RUN apt-get update && \
|
131 |
apt-get install -y \
|
132 |
bash \
|
133 |
git git-lfs \
|
|
|
135 |
htop vim nano && \
|
136 |
rm -rf /var/lib/apt/lists/*
|
137 |
|
138 |
+
RUN useradd -m -u 1000 user
|
139 |
+
|
140 |
WORKDIR /app
|
141 |
COPY --link --chown=1000 ./ /app
|
142 |
RUN npm ci
|