volsu-contests/frontend/Dockerfile

25 lines
369 B
Docker

FROM node:22-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy application code
COPY . .
# Make entrypoint executable
RUN chmod +x /app/entrypoint.sh
# Expose port
EXPOSE 3000
# Use entrypoint for dependency sync
ENTRYPOINT ["/app/entrypoint.sh"]
# Run the development server
CMD ["npm", "run", "dev"]