Skip to content

Commit

Permalink
aps-2198 fix npm access denied
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Dec 4, 2023
1 parent d93569f commit bc7ef1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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
6 changes: 3 additions & 3 deletions Dockerfile
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 NEXT_PUBLIC_APP_VERSION=${APP_VERSION}
Expand All @@ -7,7 +7,7 @@ ARG APP_REVISION
ENV NEXT_PUBLIC_APP_REVISION=${APP_REVISION}

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

WORKDIR /app

Expand All @@ -19,7 +19,7 @@ COPY src ./
ARG GITHUB_API_TOKEN
ENV COOKIE_SECRET=change_me

RUN npm run build
RUN NODE_OPTIONS=--openssl-legacy-provider npm run build

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

0 comments on commit bc7ef1d

Please sign in to comment.