Spaces:
Runtime error
Runtime error
Esteves Enzo
commited on
Commit
·
fc4bdb2
1
Parent(s):
fd01417
docker file updated
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -15,7 +15,7 @@ RUN npm install
|
|
15 |
# Copy the rest of the application files to the container
|
16 |
# COPY . .
|
17 |
|
18 |
-
RUN useradd -m -u
|
19 |
|
20 |
USER user
|
21 |
|
@@ -24,9 +24,7 @@ ENV PATH=/home/user/.local/bin:$PATH
|
|
24 |
|
25 |
WORKDIR $HOME/app
|
26 |
|
27 |
-
COPY --chown=user . $HOME
|
28 |
-
|
29 |
-
RUN mkdir -p $HOME/app/data
|
30 |
|
31 |
|
32 |
# Build the Next.js application for production
|
|
|
15 |
# Copy the rest of the application files to the container
|
16 |
# COPY . .
|
17 |
|
18 |
+
RUN useradd -m -u 1000 user
|
19 |
|
20 |
USER user
|
21 |
|
|
|
24 |
|
25 |
WORKDIR $HOME/app
|
26 |
|
27 |
+
COPY --chown=user . $HOME
|
|
|
|
|
28 |
|
29 |
|
30 |
# Build the Next.js application for production
|