Skip to content

Commit 0751aa0

Browse files
authored
Merge pull request #61 from gitpod-io/pde-128-disable-npm-scripts
Disable npm lifecycle scripts for security
2 parents d2b5fca + 42794d1 commit 0751aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ WORKDIR /gitpod
2828

2929
COPY . /gitpod
3030

31-
RUN yarn --pure-lockfile --non-interactive \
31+
RUN yarn --pure-lockfile --non-interactive --ignore-scripts \
3232
&& rm -rf /usr/local/share/.cache/yarn
3333

34-
RUN npm install -g aws-cdk ts-node
34+
RUN npm install -g --ignore-scripts aws-cdk ts-node
3535

3636
ENTRYPOINT ["/gitpod/setup.sh"]

0 commit comments

Comments
 (0)