blob: c400402ebdc0760f955d07b42554e6751dc1c9f2 [file] [log] [blame]
David Crawshaw5228b582025-05-01 11:18:12 -07001FROM ghcr.io/boldsoftware/sketch:86ef7a672f85139e73f38d4cdf78d95f
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" && \
7 git config --global user.name "$GIT_USER_NAME"
8
David Crawshaw5228b582025-05-01 11:18:12 -07009LABEL sketch_context="6a2899d2fa46e4791d008adc7847bb0f374fd82e23ecc9ab7a1f5f188bf7fff5"
Earl Lee2e463fb2025-04-17 11:22:22 -070010COPY . /app
11
12WORKDIR /app
13RUN if [ -f go.mod ]; then go mod download; fi
14
David Crawshaw5228b582025-05-01 11:18:12 -070015# Install Python 3.11 (if not present in base image)
16RUN apt-get update && apt-get install -y python3.11 python3.11-venv python3-pip || true
Josh Bleecher Snyderc76a3922025-05-01 01:18:56 +000017
David Crawshaw5228b582025-05-01 11:18:12 -070018# Install DVC tool as requested in README
19RUN pip install dvc || true
Josh Bleecher Snydere2d24ab2025-04-30 00:01:41 +000020
David Crawshaw5228b582025-05-01 11:18:12 -070021# Create and activate Python virtual environment
22RUN python3.11 -m venv /app/.venv || true
23ENV PATH="/app/.venv/bin:$PATH"
David Crawshaw11129492025-04-25 20:41:53 -070024
25CMD ["/bin/sketch"]