forked from HimanshuNarware/Devlabs
-
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.
updated dockerfilke and updated readme.md
Signed-off-by: Ratan Gulati <[email protected]>
- Loading branch information
1 parent
c4294c4
commit 52fc182
Showing
4 changed files
with
64 additions
and
9 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
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,12 +1,7 @@ | ||
FROM node:alpine AS builder | ||
FROM node:alpine | ||
WORKDIR /app | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
COPY . . | ||
|
||
FROM node:alpine | ||
WORKDIR /app | ||
COPY --from=builder /app /app | ||
RUN npm install | ||
EXPOSE 8000 | ||
CMD ["npm","start"] | ||
CMD ["npm", "start"] |
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
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ WORKDIR /app | |
COPY --from=builder /app /app | ||
RUN npm install | ||
EXPOSE 3000 | ||
CMD ["npm","start"] | ||
CMD ["npm", "start"] |