-
Notifications
You must be signed in to change notification settings - Fork 7
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
3a1be66
commit d6263a6
Showing
3 changed files
with
21 additions
and
11 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 |
---|---|---|
|
@@ -8,7 +8,8 @@ node_js: | |
|
||
install: | ||
- npm install | ||
- npm run build | ||
|
||
script: | ||
- npm test | ||
- npm t | ||
|
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,24 @@ | ||
FROM node:8-alpine | ||
FROM node:10-alpine as build | ||
WORKDIR /app | ||
|
||
COPY README.md package.json package-lock.json /app/ | ||
RUN npm i --production | ||
RUN npm i | ||
|
||
COPY lib /app/lib | ||
# Rarely edited | ||
COPY bin /app/bin | ||
COPY public /app/public | ||
COPY tsconfig.json /app/ | ||
|
||
COPY bin /app/bin | ||
COPY public /app/public | ||
COPY views /app/views | ||
COPY * /app/ | ||
# Frequently edited | ||
COPY views /app/views | ||
COPY src /app/src | ||
|
||
EXPOSE 3000 | ||
RUN npm run build | ||
|
||
RUN npm ci --only=production | ||
|
||
FROM node:10-alpine as release | ||
COPY --from=build /app/ /app/ | ||
|
||
EXPOSE 3000 | ||
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