Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -13,7 +13,7 @@ RUN --mount=type=secret,id=GITHUB_REPO,required=true \
|
|
| 13 |
RUN npm install
|
| 14 |
|
| 15 |
# Build project (Nuxt, Express bundler, dll)
|
| 16 |
-
|
| 17 |
|
| 18 |
# Ganti owner biar bisa jalan sebagai user non-root
|
| 19 |
RUN chown -R node:node /app
|
|
@@ -22,4 +22,4 @@ USER node
|
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
# Jalankan aplikasi
|
| 25 |
-
CMD ["npm", "
|
|
|
|
| 13 |
RUN npm install
|
| 14 |
|
| 15 |
# Build project (Nuxt, Express bundler, dll)
|
| 16 |
+
RUN npm run build
|
| 17 |
|
| 18 |
# Ganti owner biar bisa jalan sebagai user non-root
|
| 19 |
RUN chown -R node:node /app
|
|
|
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
# Jalankan aplikasi
|
| 25 |
+
CMD ["npm", "start"
|