Update entrypoint to support ssr

This commit is contained in:
2025-04-21 12:26:19 -07:00
parent 4fc5a07249
commit 788eb84488
2 changed files with 5 additions and 4 deletions

View File

@@ -35,9 +35,6 @@ RUN pnpm run build
FROM node:22-alpine
WORKDIR /app
# Install serve
RUN npm install -g http-server
# Copy built files
COPY --from=builder /app/dist ./dist
@@ -45,4 +42,4 @@ COPY --from=builder /app/dist ./dist
EXPOSE 3000
# Deployment command
CMD ["http-server", "dist", "-a", "0.0.0.0", "-p", "3000"]
CMD ["node", "./dist/server/entry.mjs"]

View File

@@ -10,6 +10,10 @@ import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
output: "server",
server: {
host: true,
port: 3000,
},
adapter: node({
mode: "standalone",
}),