blob: c74aeb150c1b63ffc50982097f0625571c898731 [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" && \
7 git config --global user.name "$GIT_USER_NAME"
8
David Crawshawfa67fe52025-05-01 20:42:08 +00009LABEL sketch_context="00e8cee1c3621b40cc6b977430392a621b3d8dea06b12191c082f9bda155832b"
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 Python 3.11 and set it up as the default python3
16RUN apt-get update && \
17 apt-get install -y --no-install-recommends python3.11 python3.11-venv python3-pip || true && \
18 apt-get clean && \
19 rm -rf /var/lib/apt/lists/*
Josh Bleecher Snyderc76a3922025-05-01 01:18:56 +000020
David Crawshawfa67fe52025-05-01 20:42:08 +000021# Create symlink to make python3.11 the default python3
22RUN if [ -f /usr/bin/python3.11 ]; then \
23 update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1; \
24 fi
Josh Bleecher Snydere2d24ab2025-04-30 00:01:41 +000025
David Crawshawfa67fe52025-05-01 20:42:08 +000026# Install dvc (Data Version Control) as mentioned in README
27RUN pip3 install dvc || true
David Crawshaw11129492025-04-25 20:41:53 -070028
29CMD ["/bin/sketch"]