-
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.
fix npm mkdir error in portal (#962)
- Loading branch information
1 parent
bc7ef1d
commit e47bcb9
Showing
1 changed file
with
6 additions
and
4 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 |
---|---|---|
|
@@ -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"] |