-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
041aedb
commit 5333a20
Showing
10 changed files
with
17,796 additions
and
9,060 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 | ||
npm-debug.log | ||
Dockerfile | ||
.dockerignore | ||
.git |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ node_modules | |
.vscode | ||
coverage | ||
lib | ||
dist | ||
examples | ||
logs | ||
*.DS_Store |
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,35 @@ | ||
# ---- Base Alpine with installed Node ---- | ||
FROM alpine:3.14.3 AS base | ||
|
||
# install node | ||
RUN apk add --update \ | ||
nodejs=14.18.1-r0 \ | ||
npm=7.17.0-r0 \ | ||
nghttp2 | ||
|
||
# ---- Install dependencies ---- | ||
FROM base AS build | ||
|
||
WORKDIR /app | ||
COPY . . | ||
# install dependencies | ||
RUN npm ci | ||
|
||
# build to a production Javascript | ||
RUN npm run build:prod | ||
|
||
# ---- Serve ---- | ||
FROM base AS release | ||
|
||
WORKDIR /app | ||
COPY --from=build /app/dist ./dist | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
COPY package* ./ | ||
# install only production dependencies (defined in "dependencies") | ||
RUN npm ci --only=production | ||
# copy OpenaAPI document | ||
COPY openapi.yaml ./ | ||
|
||
EXPOSE 80 | ||
CMD ["npm", "run", "start:prod"] |
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
Oops, something went wrong.