mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
Update dockerfile; update compose
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user