17 lines
348 B
Docker
17 lines
348 B
Docker
# Backend Dockerfile for Chitfund
|
|
FROM node:20-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install build essentials for bcrypt if needed (though pre-built binaries usually work on slim)
|
|
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY package*.json ./
|
|
RUN npm install --omit=dev
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["npm", "start"]
|