react app
This commit is contained in:
20
backend/Dockerfile
Normal file
20
backend/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Use the official Node.js 20 image as the base image
|
||||
FROM node:20
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the package.json and package-lock.json files to the container
|
||||
COPY package*.json ./
|
||||
|
||||
# Install the dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application's source code to the container
|
||||
COPY . .
|
||||
|
||||
# Expose the port that the application listens on
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the Node.js application
|
||||
CMD [ "npm", "start" ]
|
||||
Reference in New Issue
Block a user