Skip to content

Commit 7fff429

Browse files
committed
Added permission checking for scripts
1 parent e1af3f1 commit 7fff429

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ ARG USERNAME=vscode
2828
ARG USER_UID=1000
2929
ARG USER_GID=$USER_UID
3030
COPY scripts/setup.sh /tmp
31-
RUN /tmp/setup.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "true" \
31+
RUN chmod +x /tmp/setup.sh \
32+
&& /tmp/setup.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "true" \
3233
&& rm -f /tmp/setup.sh
3334
#################################################################################################
3435
FROM base as perf-builder
@@ -72,7 +73,7 @@ COPY scripts/.CodeCheckerIgnore scripts/utils.cmake /opt/cmake-utils/
7273

7374
#Setup profiling script
7475
COPY scripts/cpu-profile.sh /opt
75-
RUN ln -s /opt/cpu-profile.sh /usr/bin/cpu-profile
76+
RUN chmod +x /opt/cpu-profile.sh && ln -s /opt/cpu-profile.sh /usr/bin/cpu-profile
7677

7778
# Cleanup
7879
RUN export DEBIAN_FRONTEND=noninteractive && apt autoremove -y

0 commit comments

Comments
 (0)