Files

21 lines
314 B
Docker

FROM node:18-alpine
WORKDIR /app
# Install dependencies for native modules
RUN apk add --no-cache python3 make g++ git
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Expose port
EXPOSE 5000
# Start development server
CMD ["npm", "run", "dev"]