Skip to content

Commit

Permalink
Update .Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
karnaabhishek authored Apr 18, 2024
1 parent ff9bbc8 commit 2d01d56
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM node:alpine
# Build stage
FROM node:alpine AS build
RUN apk add --no-cache build-base python3 linux-headers udev
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# Production stage
FROM node:alpine
WORKDIR /app
COPY --from=build /app .
CMD ["npm", "start"]

0 comments on commit 2d01d56

Please sign in to comment.