-
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.
Updating dockerfile and exposed port
- Loading branch information
1 parent
ca16dea
commit 70ff359
Showing
2 changed files
with
12 additions
and
5 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,9 +1,17 @@ | ||
FROM node:20 | ||
FROM node:20 as builder | ||
|
||
WORKDIR /app | ||
COPY package.json ./ | ||
COPY package.json yarn.lock ./ | ||
RUN yarn install | ||
COPY . . | ||
EXPOSE 8080 | ||
RUN yarn build | ||
|
||
FROM node:20-slim | ||
|
||
WORKDIR /app | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/lib ./lib | ||
COPY package.json yarn.lock ./ | ||
|
||
EXPOSE 80 | ||
CMD [ "node", "lib/index.js" ] |
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