Skip to content

Commit

Permalink
upd e2e portal dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Dec 4, 2023
1 parent 4825a7c commit 56cb3a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions local/portal/Dockerfile.E2E
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}
Expand All @@ -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"]

0 comments on commit 56cb3a2

Please sign in to comment.