-
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.
Merge pull request #966 from bcgov/test
Create Latest Release
- Loading branch information
Showing
5 changed files
with
28 additions
and
13 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,3 +1,7 @@ | ||
src/node_modules | ||
src/.npm | ||
src/_tmp | ||
src/.cache | ||
src/.config | ||
**/.next | ||
_data |
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,3 +1,4 @@ | ||
#FROM node:lts-alpine3.17 | ||
FROM node:16.14.2-alpine3.15 | ||
|
||
ARG APP_VERSION | ||
|
@@ -7,19 +8,21 @@ ARG APP_REVISION | |
ENV NEXT_PUBLIC_APP_REVISION=${APP_REVISION} | ||
|
||
RUN apk add curl jq | ||
RUN npm install -g [email protected] | ||
|
||
USER node | ||
WORKDIR /app | ||
|
||
COPY src/*.json ./ | ||
RUN npm install | ||
COPY --chown=node src/*.json ./ | ||
RUN npm install --legacy-peer-deps | ||
|
||
COPY src ./ | ||
COPY --chown=node src ./ | ||
|
||
ARG GITHUB_API_TOKEN | ||
ENV COOKIE_SECRET=change_me | ||
|
||
RUN npm run build | ||
|
||
ENV HOME=/home/node | ||
|
||
ENTRYPOINT [ "npm", "run" ] | ||
CMD [ "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM cypress/included:12.4.0 | ||
FROM cypress/included:12.17.4 | ||
|
||
WORKDIR /e2e | ||
|
||
|
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,17 +1,22 @@ | ||
FROM node:16.14.2-alpine3.15 | ||
FROM node:lts-alpine3.17 | ||
|
||
RUN apk add curl jq | ||
|
||
ARG APP_VERSION | ||
ENV APP_VERSION=${APP_VERSION} | ||
|
||
ARG APP_REVISION | ||
ENV APP_REVISION=${APP_REVISION} | ||
|
||
USER node | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
COPY --chown=node package*.json ./ | ||
RUN npm install | ||
|
||
COPY . ./ | ||
COPY --chown=node . ./ | ||
|
||
ENV HOME=/home/node | ||
|
||
ENTRYPOINT [ "npm", "run" ] | ||
CMD [ "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#FROM node:lts-alpine3.18 | ||
FROM node:16.14.2-alpine3.15 | ||
|
||
ARG APP_VERSION | ||
|
@@ -7,17 +8,17 @@ 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 | ||
RUN npm install --legacy-peer-deps | ||
|
||
COPY src ./ | ||
COPY --chown=node src ./ | ||
|
||
RUN npx nyc instrument --compact=false nextapp --in-place | ||
|
||
|
@@ -26,5 +27,7 @@ ENV COOKIE_SECRET=change_me | |
|
||
RUN npm run build | ||
|
||
ENV HOME=/home/node | ||
|
||
ENTRYPOINT [ "npm", "run" ] | ||
CMD [ "start"] |