Skip to content

Commit

Permalink
Merge pull request #966 from bcgov/test
Browse files Browse the repository at this point in the history
Create Latest Release
  • Loading branch information
ikethecoder authored Dec 6, 2023
2 parents b58a552 + a070d5f commit 90ea9fd
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
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
11 changes: 7 additions & 4 deletions Dockerfile
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
Expand All @@ -7,19 +8,21 @@ ARG APP_REVISION
ENV NEXT_PUBLIC_APP_REVISION=${APP_REVISION}

RUN apk add curl jq
RUN npm install -g npm@7.11.2

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"]
2 changes: 1 addition & 1 deletion e2e/Dockerfile
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

Expand Down
11 changes: 8 additions & 3 deletions feeds/Dockerfile
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"]
13 changes: 8 additions & 5 deletions local/portal/Dockerfile.E2E
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
Expand All @@ -7,17 +8,17 @@ ARG APP_REVISION
ENV APP_REVISION=${APP_REVISION}

RUN apk add curl jq
RUN npm install -g npm@7.11.2

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

Expand All @@ -26,5 +27,7 @@ ENV COOKIE_SECRET=change_me

RUN npm run build

ENV HOME=/home/node

ENTRYPOINT [ "npm", "run" ]
CMD [ "start"]

0 comments on commit 90ea9fd

Please sign in to comment.