add docker files

This commit is contained in:
2025-11-08 21:50:43 +03:00
parent 2a75d46f84
commit b327d16260
4 changed files with 116 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# Use Node.js 20 Alpine as base image for smaller size
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Install dependencies for node-gyp and other native modules
RUN apk add --no-cache python3 make g++
# Copy package files
COPY package.json yarn.lock ./
# Install dependencies
RUN yarn install --frozen-lockfile
# Copy source code
COPY . .
# Expose port 3000 (default React dev server port)
EXPOSE 3000
# Set environment variables for development
ENV NODE_ENV=development
ENV CHOKIDAR_USEPOLLING=true
ENV WATCHPACK_POLLING=true
# Start the development server
CMD ["yarn", "start"]