blob: 8934292040ab861997ffbb750cbf455ad433957a [file] [log] [blame]
FROM ghcr.io/boldsoftware/sketch:82c32883426c519eada7250c0017e6b7
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="69b535ce4ef4f44fc2994d9f117ccf1285b86ed626681c65c4c556e213cdc2f3"
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 pip install --break-system-packages requests || true
# Switch back to strict shell after extra_cmds.
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
CMD ["/bin/sketch"]