-
Notifications
You must be signed in to change notification settings - Fork 6
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 #944 from codacy/feature/refactor-to-eslint8_TS-602
Feature/Refactor to ESLint8 TS-602
- Loading branch information
Showing
15 changed files
with
3,338 additions
and
2,147 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
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,25 +1,22 @@ | ||
ARG NODE_IMAGE_VERSION=16-alpine3.18 | ||
FROM node:lts-alpine3.19 as builder | ||
|
||
FROM node:$NODE_IMAGE_VERSION as builder | ||
COPY . ./ | ||
|
||
COPY package*.json ./ | ||
RUN npm install | ||
RUN npm install &&\ | ||
npm cache clean --force &&\ | ||
npm run compile &&\ | ||
npm test | ||
|
||
COPY . . | ||
|
||
RUN npm run compile | ||
RUN npm test | ||
|
||
FROM node:$NODE_IMAGE_VERSION | ||
FROM node:lts-alpine3.19 | ||
|
||
COPY --from=builder dist dist | ||
COPY --from=builder package.json ./ | ||
COPY --from=builder package-lock.json ./ | ||
COPY --from=builder docs docs | ||
|
||
RUN npm install --production | ||
|
||
RUN adduser -u 2004 -D docker | ||
RUN chown -R docker:docker /docs | ||
RUN npm install --omit=dev &&\ | ||
npm cache clean --force &&\ | ||
adduser -u 2004 -D docker &&\ | ||
chown -R docker:docker /docs | ||
|
||
CMD ["node", "dist/src/index.js"] |
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.