fossasia / open-event-server

Set the SHELL option -o pipefail before using RUN with a pipe character DOK-DL4006
Bug risk
Major
5 months ago3 years old
Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
 4RUN apt-get clean -y && apt-get update -y
 5RUN apt-get install -y curl apt-transport-https
 6RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
 7RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - 8RUN apt-get update -y && apt-get install -y google-cloud-sdk && apt-get autoremove -y
 9RUN apt-get clean -y
10
Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
 3
 4RUN apt-get clean -y && apt-get update -y
 5RUN apt-get install -y curl apt-transport-https
 6RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list 7RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
 8RUN apt-get update -y && apt-get install -y google-cloud-sdk && apt-get autoremove -y
 9RUN apt-get clean -y
Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
29COPY pyproject.toml ./
30COPY poetry.lock ./
31
32RUN poetry export -f requirements.txt --without-hashes --only main | poetry run pip install -r /dev/stdin33
34####
35
Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
22
23ENV PATH="$POETRY_HOME/bin:$PATH"
24
25RUN set -eo pipefail; wget -O - https://install.python-poetry.org | python -26
27WORKDIR /opt/pysetup
28