-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba84e8c
commit cc98420
Showing
1 changed file
with
7 additions
and
21 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,22 +1,8 @@ | ||
FROM node:slim | ||
|
||
# Create app directory | ||
FROM node:20 as dependencies | ||
WORKDIR /app | ||
|
||
# Install app dependencies | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
COPY package*.json ./ | ||
|
||
#RUN npm cache clean --force | ||
|
||
RUN npm install | ||
RUN npm i --save @nestjs/config | ||
# If you are building your code for production | ||
# RUN npm ci --only=production | ||
|
||
# Bundle app source | ||
COPY . . | ||
|
||
EXPOSE 3000 | ||
CMD [ "npm", "run","start" ] | ||
COPY . ./ | ||
RUN npm i --force | ||
RUN npm install fcm-node --force | ||
RUN apt-get update | ||
EXPOSE 4000 | ||
CMD ["npm", "start"] |