Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
anusha267 committed Nov 3, 2024
1 parent 7827d06 commit 0756dac
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Use the official Node.js image from Docker Hub.
FROM node:18
# Use the official Node.js image.
FROM node:23

# Set the working directory inside the container.
WORKDIR /usr/src/app

# Copy package.json and package-lock.json to the container.
# Copy package.json and package-lock.json (if available).
COPY package*.json ./

# Install application dependencies.
# Install dependencies.
RUN npm install

# Copy the rest of your application code to the container.
# Copy the rest of the application code.
COPY . .

# Expose the port that your application will run on.
# Build the application (if necessary).
RUN npm run start:prod

# Expose the port that your app runs on.
EXPOSE 8080

# Command to run your application.
CMD [ "npm", "start" ]
# Command to run the application.
CMD ["node", "dist/index.js"] # Adjust the command based on your app entry point.

0 comments on commit 0756dac

Please sign in to comment.