Files
snatchgame/client/Dockerfile
josedario87 3f52296395
Some checks failed
build-and-deploy / build (push) Failing after 1m29s
build-and-deploy / deploy (push) Has been skipped
build-and-deploy / filter (push) Successful in 2s
fix: Add git to all Dockerfiles for npm dependencies that require git repositories
2025-07-05 14:52:00 -06:00

30 lines
526 B
Docker

# Client Dockerfile - Vue 3 Client UI
FROM node:20-alpine
# Install git for npm dependencies
RUN apk add --no-cache git
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build Vue application
RUN npm run build
# Expose port
EXPOSE 3000
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1
# Start client server
CMD ["npm", "start"]