Skip to content

Commit

Permalink
adding docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed May 23, 2024
1 parent df0fc0d commit 2109e2f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use the official Node.js image.
# The version of Node.js can be adjusted as necessary.
FROM node:14

# Create and change to the app directory.
WORKDIR /usr/src/app

# Copy package.json and package-lock.json.
COPY package*.json ./

# Install dependencies.
RUN npm install

# Copy the rest of the application code.
COPY . .

# Expose the port the app runs on, if needed (for example, 8080).
# EXPOSE 8080

# Define environment variable for the path to .env file.
ENV NODE_ENV=production

# Command to run the application.
CMD ["node", "index.js"]

# Note: Replace 'index.js' with the actual entry point of your application.

0 comments on commit 2109e2f

Please sign in to comment.