-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- don't install every package globally; - don't reinstall them through Docker-Compose; - remove obsolete service; - remove ignored env variable.
- Loading branch information
Showing
2 changed files
with
7 additions
and
15 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,16 +1,13 @@ | ||
FROM node:lts | ||
|
||
WORKDIR /app | ||
RUN npm i -g nodemon typescript | ||
|
||
RUN chown node:node /app | ||
USER node | ||
|
||
COPY . . | ||
WORKDIR /app | ||
|
||
RUN npm install -g nodemon | ||
RUN npm install typescript -g | ||
RUN npm install -g | ||
COPY --chown=node . . | ||
|
||
USER node | ||
RUN npm i | ||
|
||
EXPOSE 8100 | ||
RUN npm run dev | ||
CMD npm run migrate && npm run dev |
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