Files
snatchgame/admin/Dockerfile
josedario87 9254e41fce
Some checks failed
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Failing after 12s
build-and-deploy / deploy (push) Has been skipped
fix: Add build:prod scripts to skip type generation during Docker builds
- Client and admin builds fail in Docker due to missing ../server directory
- build:prod scripts bypass generate-types step for containerized builds
- Local development still uses full build with type generation
2025-07-05 15:04:06 -06:00

30 lines
568 B
Docker

# Admin Dockerfile - Vue 3 Admin Dashboard
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 (skip type generation in Docker)
RUN npm run build:prod
# Expose port
EXPOSE 3001
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:3001/health || exit 1
# Start admin server
CMD ["npm", "start"]