-
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
4825a7c
commit 56cb3a2
Showing
1 changed file
with
8 additions
and
6 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,4 +1,4 @@ | ||
FROM node:16.14.2-alpine3.15 | ||
FROM node:lts-alpine3.17 | ||
|
||
ARG APP_VERSION | ||
ENV APP_VERSION=${APP_VERSION} | ||
|
@@ -7,24 +7,26 @@ ARG APP_REVISION | |
ENV APP_REVISION=${APP_REVISION} | ||
|
||
RUN apk add curl jq | ||
RUN npm install -g [email protected] | ||
|
||
USER node | ||
WORKDIR /app | ||
|
||
COPY src/*.json ./ | ||
COPY --chown=node src/*.json ./ | ||
|
||
COPY src/nyc-config.js ./ | ||
COPY --chown=node src/nyc-config.js ./ | ||
|
||
RUN npm install | ||
|
||
COPY src ./ | ||
COPY --chown=node src ./ | ||
|
||
RUN npx nyc instrument --compact=false nextapp --in-place | ||
|
||
ARG GITHUB_API_TOKEN | ||
ENV COOKIE_SECRET=change_me | ||
|
||
RUN npm run build | ||
RUN NODE_OPTIONS=--openssl-legacy-provider npm run build | ||
|
||
ENV HOME=/home/node | ||
|
||
ENTRYPOINT [ "npm", "run" ] | ||
CMD [ "start"] |