Spaces:
Running
Running
build command
Browse files- Dockerfile +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 |
-
#
|
26 |
-
CMD ["
|
|
|
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
|
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 .",
|