1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-06-20 01:55:19 +00:00

fix(repo): add missing npm run build

This commit is contained in:
2022-11-11 16:04:54 +07:00
parent d8e0c610ce
commit f2688d8d96
2 changed files with 9 additions and 7 deletions
+5 -5
View File
@@ -11,11 +11,11 @@ node_modules
**/Thumbs.db
# Build
src/.nuxt
src/.nitro
src/.cache
src/.output
src/dist
**/.nuxt
**/.nitro
**/.cache
**/.output
**/dist
# Environment
.env
+4 -2
View File
@@ -5,10 +5,9 @@ FROM node:${NODE_VERSION} AS builder
WORKDIR /build
# See .dockerignore
COPY . .
RUN npm ci && npm cache clean --force && ls -a
RUN npm ci && npm run build && npm cache clean --force
# Stage 2: Run the application
FROM node:${NODE_VERSION}
@@ -17,6 +16,9 @@ WORKDIR /app
COPY --from=builder /build/src/.output .
ENV HOST=0.0.0.0
ENV PORT=3000
VOLUME /app
EXPOSE 3000