Update: use port 80 with serve package

This commit is contained in:
Kunthawat Greethong
2026-03-03 23:36:45 +07:00
parent 7a64054475
commit 80e0c0406f
3 changed files with 853 additions and 2 deletions

View File

@@ -10,5 +10,5 @@ WORKDIR /app
COPY package*.json ./
RUN npm ci --production
COPY --from=builder /app/dist ./dist
EXPOSE 4321
CMD ["npx", "astro", "preview", "--host", "0.0.0.0", "--port", "4321"]
EXPOSE 80
CMD ["npx", "serve", "dist", "-l", "80"]

850
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,7 @@
"dependencies": {
"@tailwindcss/vite": "^4.2.1",
"astro": "^5.17.1",
"serve": "^14.2.5",
"tailwindcss": "^4.2.1"
}
}