Spaces:
Runtime error
Runtime error
Esteves Enzo
commited on
Commit
·
02729c4
1
Parent(s):
3b6777d
docker file updated
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
@@ -17,6 +17,15 @@ COPY . .
|
|
17 |
|
18 |
VOLUME /data
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
# Build the Next.js application for production
|
21 |
RUN npm run build
|
22 |
|
|
|
17 |
|
18 |
VOLUME /data
|
19 |
|
20 |
+
RUN useradd -m -u 1000 user
|
21 |
+
USER user
|
22 |
+
ENV HOME=/home/user \
|
23 |
+
PATH=/home/user/.local/bin:$PATH
|
24 |
+
|
25 |
+
WORKDIR $HOME/.
|
26 |
+
|
27 |
+
COPY --chown=user . $HOME/.
|
28 |
+
|
29 |
# Build the Next.js application for production
|
30 |
RUN npm run build
|
31 |
|