Skip to content

Commit

Permalink
chore: npm run prod
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Aug 21, 2024
1 parent 93df659 commit 45b0229
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ COPY --from=builder /app/build build/
COPY --from=builder /app/static static/
COPY --from=builder /app/db db/
COPY --from=builder /app/node_modules node_modules/
COPY --from=builder /app/package.json package.json
COPY package.json .
EXPOSE 3000
ENV NODE_ENV=production
CMD ["node", "build"]
CMD ["npm", "run", "prod"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"prod": "drizzle-kit migrate && node build"
},
"devDependencies": {
"@sveltejs/adapter-node": "^5.2.1",
Expand Down

0 comments on commit 45b0229

Please sign in to comment.