blob: d7cd3283f941ada934b342597c84a0a36e23c876 [file] [log] [blame]
David Crawshawfa67fe52025-05-01 20:42:08 +00001FROM ghcr.io/boldsoftware/sketch:3a03b430af3cabf3415d263b7803b311
David Crawshawbe10fa92025-04-18 01:16:00 -07002
Earl Lee2e463fb2025-04-17 11:22:22 -07003ARG 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="2c865c897e88f0bc021007a21d2ed036f3918b5e8b9dbbd5708662980afb4ee6"
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 -070016# Install Python 3.11 and DVC as required by the project
David Crawshawfa67fe52025-05-01 20:42:08 +000017RUN apt-get update && \
18 apt-get install -y --no-install-recommends python3.11 python3.11-venv python3-pip || true && \
19 apt-get clean && \
20 rm -rf /var/lib/apt/lists/*
Josh Bleecher Snyderc76a3922025-05-01 01:18:56 +000021
David Crawshawca535582025-05-03 13:04:34 -070022# Install DVC
David Crawshawfa67fe52025-05-01 20:42:08 +000023RUN pip3 install dvc || true
David Crawshaw11129492025-04-25 20:41:53 -070024
25CMD ["/bin/sketch"]