Skip to content

Commit

Permalink
feat: Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
manthanank authored Feb 14, 2024
1 parent 64595ef commit c5cb230
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
FROM alpine:3.17.2
CMD ["echo", "Hello World!"]
# Use Node.js 14 LTS version as base image
FROM node:14

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy all files from the current directory to the working directory in the container
COPY . .

# Expose the port the app runs on
EXPOSE 3000

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

0 comments on commit c5cb230

Please sign in to comment.