enzostvs HF staff commited on
Commit
4c21a8d
·
1 Parent(s): 378c94f

build command

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. package.json +1 -1
Dockerfile CHANGED
@@ -22,5 +22,5 @@ RUN npm run build
22
  # Expose the application port (assuming your app runs on port 3000)
23
  EXPOSE 3000
24
 
25
- # Start the application
26
- CMD ["npm", "run", "preview"]
 
22
  # Expose the application port (assuming your app runs on port 3000)
23
  EXPOSE 3000
24
 
25
+ # Run the application in production mode
26
+ CMD ["node", "build"]
package.json CHANGED
@@ -4,7 +4,7 @@
4
  "scripts": {
5
  "dev": "vite dev",
6
  "build": "vite build",
7
- "preview": "vite preview --host 3000",
8
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
9
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
10
  "lint": "prettier --check . && eslint .",
 
4
  "scripts": {
5
  "dev": "vite dev",
6
  "build": "vite build",
7
+ "preview": "vite preview",
8
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
9
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
10
  "lint": "prettier --check . && eslint .",