Update dockerfile; update compose

This commit is contained in:
2025-04-21 12:02:33 -07:00
parent 7446d8296a
commit 99e1cd5639
3 changed files with 8 additions and 5 deletions

View File

@@ -36,10 +36,13 @@ FROM node:22-alpine
WORKDIR /app
# Install serve
RUN npm install -g serve
RUN npm install -g http-server
# Copy built files
COPY --from=builder /app/dist ./dist
# Expose port 3000
EXPOSE 3000
CMD ["serve", "-s", "dist", "-l", "3000"]
# Deployment command
CMD ["http-server", "dist", "-a", "127.0.0.1", "-p", "3000"]