updates
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
# Set Node.js version
|
||||
FROM node:16
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy package.json and package-lock.json
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Expose port 3000
|
||||
EXPOSE 3000
|
||||
|
||||
# Run the app
|
||||
CMD ["npm", "run", "build", "&&", "npm", "start"]
|
||||
Reference in New Issue
Block a user