blob: cc73fbdd1c84138e73d3a48f980fd08337964e5e [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" && \
7 git config --global user.name "$GIT_USER_NAME"
8
David Crawshawfa67fe52025-05-01 20:42:08 +00009LABEL sketch_context="6f16c9b83fbd20e2eb242922989364954adb4905ab8c562baf2bc906ee347da5"
Earl Lee2e463fb2025-04-17 11:22:22 -070010COPY . /app
11
12WORKDIR /app
13RUN if [ -f go.mod ]; then go mod download; fi
14
David Crawshawfa67fe52025-05-01 20:42:08 +000015# Install any Python dependencies but continue if setup fails
16RUN if [ -f requirements.txt ]; then pip3 install -r requirements.txt || true; fi
Josh Bleecher Snyderc76a3922025-05-01 01:18:56 +000017
David Crawshawfa67fe52025-05-01 20:42:08 +000018# Ensure Go development tools are properly set up
19RUN go mod tidy || true
David Crawshaw11129492025-04-25 20:41:53 -070020
21CMD ["/bin/sketch"]