| FROM ghcr.io/boldsoftware/sketch:8a0fa60d74a8342c828aaec2c6d25bf3 |
| |
| ARG GIT_USER_EMAIL |
| ARG GIT_USER_NAME |
| |
| RUN git config --global user.email "$GIT_USER_EMAIL" && \ |
| git config --global user.name "$GIT_USER_NAME" && \ |
| git config --global http.postBuffer 524288000 |
| |
| LABEL sketch_context="9e2e88b559df3656b9b50664cd435a00d410a76c08f0c4ec9a6d01a767435d51" |
| COPY . /app |
| RUN rm -f /app/tmp-sketch-dockerfile |
| |
| WORKDIR /app |
| RUN if [ -f go.mod ]; then go mod download; fi |
| |
| # Switch to lenient shell so we are more likely to get past failing extra_cmds. |
| SHELL ["/bin/bash", "-uo", "pipefail", "-c"] |
| |
| RUN apt-get update && apt-get install -y --no-install-recommends python3.11 python3.11-venv python3-pip || true && apt-get clean && rm -rf /var/lib/apt/lists/* |
| RUN python3.11 -m pip install --upgrade pip || true |
| RUN python3.11 -m pip install dvc || true |
| |
| # Switch back to strict shell after extra_cmds. |
| SHELL ["/bin/bash", "-euxo", "pipefail", "-c"] |
| |
| CMD ["/bin/sketch"] |