Felix Zieger
commited on
Commit
·
02abfd4
1
Parent(s):
55a034a
file ownership
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -13,6 +13,12 @@ RUN npm install
|
|
13 |
# Copy the rest of the application code
|
14 |
COPY . .
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
# Build the Vite application
|
17 |
RUN npm run build
|
18 |
|
|
|
13 |
# Copy the rest of the application code
|
14 |
COPY . .
|
15 |
|
16 |
+
# Ensure the correct ownership and permissions
|
17 |
+
RUN chown -R node:node /app
|
18 |
+
|
19 |
+
# Switch to the non-root 'node' user
|
20 |
+
USER node
|
21 |
+
|
22 |
# Build the Vite application
|
23 |
RUN npm run build
|
24 |
|