Skip to content

Commit 9f64d1c

Browse files
chore: fix hadolint reported issues (#458)
* chore: fix hadolint reported issues * chore: update dockerfile ENV syntax
1 parent 819bd1a commit 9f64d1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:22-alpine
22

3-
ENV NODE_NO_WARNINGS 1
4-
ENV user node
3+
ENV NODE_NO_WARNINGS=1
4+
ENV user=node
55
ENV PATH=/home/node/.npm-global/bin:$PATH
66
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
77

@@ -14,8 +14,8 @@ USER $user
1414
RUN mkdir /home/$user/.npm-global
1515

1616
WORKDIR /home/$user/app
17-
RUN npm install
18-
RUN npm run build
19-
RUN npm -g install . --no-optional
17+
RUN npm ci && \
18+
npm run build && \
19+
npm -g install . --no-optional
2020

2121
ENTRYPOINT ["iexec"]

0 commit comments

Comments
 (0)