Spaces:
Running
Running
Fix example dockerfile (#10)
Browse files- Fix example dockerfile (a7ca8f577dccc4c4f3a97171df454f93c581fb30)
Co-authored-by: razzfazz.io <[email protected]>
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
|