Skip to content

Commit

Permalink
fix: The Dockerfile is updated as of npm-camera-pro.
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-kumar00 committed Aug 4, 2024
1 parent cae44ec commit a03b9c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM node:18-alpine

# Create and set the working directory
WORKDIR /app

# Copy package.json and package-lock.json first to leverage Docker cache
COPY package*.json ./

RUN npm install
# Install dependencies with legacy-peer-deps to avoid conflicts
RUN npm install --legacy-peer-deps

# Copy the rest of the application code
COPY . .

# Expose the application port
EXPOSE 3000

CMD npm run dev
# Define the command to run your application
CMD ["npm", "run", "dev"]

0 comments on commit a03b9c2

Please sign in to comment.