This commit is contained in:
parent
b669833e5e
commit
1c9eef7285
@ -1,20 +1,15 @@
|
|||||||
# Specify the base image
|
|
||||||
FROM node:24
|
FROM node:24
|
||||||
|
|
||||||
# Set the working directory in the container
|
#working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package.json and package-lock.json
|
# Copy package.json and package-lock.json
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install app dependencies
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Bundle app source
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Expose port
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Start the app
|
|
||||||
CMD [ "node", "backend.js" ]
|
CMD [ "node", "backend.js" ]
|
||||||
Loading…
Reference in New Issue
Block a user