blob: 4b0197308e3258cfa0bfc10541f9eaab692fee91 [file] [log] [blame]
David Crawshawfa67fe52025-05-01 20:42:08 +00001FROM ghcr.io/boldsoftware/sketch:3a03b430af3cabf3415d263b7803b311
Earl Lee2e463fb2025-04-17 11:22:22 -07002
3ARG GIT_USER_EMAIL
4ARG GIT_USER_NAME
5
6RUN git config --global user.email "$GIT_USER_EMAIL" && \
David Crawshawca535582025-05-03 13:04:34 -07007 git config --global user.name "$GIT_USER_NAME" && \
8 git config --global http.postBuffer 524288000
Earl Lee2e463fb2025-04-17 11:22:22 -07009
David Crawshawca535582025-05-03 13:04:34 -070010LABEL sketch_context="7f08d4359542e0a924280791b6d7baae3480d3878b309e30eaf24d291b41e1df"
Earl Lee2e463fb2025-04-17 11:22:22 -070011COPY . /app
12
13WORKDIR /app
14RUN if [ -f go.mod ]; then go mod download; fi
15
David Crawshawca535582025-05-03 13:04:34 -070016RUN set -eux; \
17 # Install any Python dependencies if applicable, continuing on failure
18 if [ -f requirements.txt ]; then pip3 install -r requirements.txt || true; fi
Josh Bleecher Snyderc76a3922025-05-01 01:18:56 +000019
David Crawshawca535582025-05-03 13:04:34 -070020# Ensure sketch binary is available
21RUN if [ ! -f /bin/sketch ]; then ln -s /app/sketch /bin/sketch || true; fi
David Crawshaw11129492025-04-25 20:41:53 -070022
23CMD ["/bin/sketch"]