-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: The Dockerfile is updated as of npm-camera-pro.
- Loading branch information
1 parent
cae44ec
commit a03b9c2
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |