-
Notifications
You must be signed in to change notification settings - Fork 2
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
f138a1b
commit db8baa7
Showing
4 changed files
with
33 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
logs/ | ||
.env | ||
src/front/build | ||
docker |
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ yarn-error.log | |
.env | ||
logs/ | ||
.DS_Store | ||
src/front/build | ||
spec/coverage | ||
spec/coverage | ||
build |
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM node:12-alpine as builder | ||
|
||
COPY . /usr/src/app | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN apk update && \ | ||
apk upgrade && \ | ||
apk --no-cache add --virtual builds-deps build-base python && \ | ||
yarn && \ | ||
yarn build && \ | ||
rm -r ./node_modules && \ | ||
yarn --production && \ | ||
touch .env | ||
# End of build stage | ||
|
||
FROM node:12-alpine | ||
|
||
COPY --from=builder /usr/src/app /usr/src/app | ||
|
||
WORKDIR /usr/src/app | ||
|
||
CMD [ "yarn", "start" ] |