forked from CSI-KJSCE/BOS-React-
21 lines
337 B
Docker
21 lines
337 B
Docker
# Use official Node.js LTS image
|
|
FROM node:18
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json
|
|
COPY package.json package-lock.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy backend source files
|
|
COPY . .
|
|
|
|
# Expose port
|
|
EXPOSE 5000
|
|
|
|
# Start the server
|
|
CMD ["node", "server.js"]
|