-
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.
Merge pull request #159 from hypersign-protocol/develop
Develop
- Loading branch information
Showing
2 changed files
with
10 additions
and
20 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,12 @@ | ||
FROM node:12.6.0-buster | ||
|
||
# setting up the working dir | ||
FROM node:16 | ||
WORKDIR /usr/src/app | ||
|
||
# setting up env var from .env file | ||
# COPY .env . | ||
# RUN /bin/bash -c "source /usr/src/app/.env" | ||
|
||
# pushing the code inside | ||
COPY package*.json ./ | ||
COPY ./package.json . | ||
COPY ./tsconfig.json . | ||
COPY . . | ||
RUN npm cache clean --force | ||
RUN npm install | ||
ADD . /usr/src/app | ||
RUN rm -f .env* | ||
CMD ["npm","run", "start:dev"] | ||
|
||
|
||
# setting up the project | ||
RUN npm run build | ||
RUN npm run newdb | ||
|
||
EXPOSE $PORT | ||
|
||
CMD npm run bootstrap && npm run 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