Skip to content

Commit

Permalink
fix npm mkdir error in portal (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder authored Dec 4, 2023
1 parent bc7ef1d commit e47bcb9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,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 NODE_OPTIONS=--openssl-legacy-provider npm run build

ENV HOME=/home/node

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

0 comments on commit e47bcb9

Please sign in to comment.