blob: 94010f17fcaa6ffd414ffd76612cd1e28ad9e3e7 [file] [log] [blame]
David Crawshaw2a5bd6d2025-04-30 14:29:46 -07001FROM ghcr.io/boldsoftware/sketch:8ad6c62da599d2e478ef79d6ef563630
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
Josh Bleecher Snyderc76a3922025-05-01 01:18:56 +00009LABEL sketch_context="8680db4c498365658a6e773fde0d43f642ae6744f41a14ad6d01e9eae7064f65"
Earl Lee2e463fb2025-04-17 11:22:22 -070010COPY . /app
11
12WORKDIR /app
13RUN if [ -f go.mod ]; then go mod download; fi
14
Josh Bleecher Snyderc76a3922025-05-01 01:18:56 +000015# Install any Python dependencies but continue on error
16RUN if [ -f requirements.txt ]; then pip3 install -r requirements.txt || true; fi
17
18# Setup Go environment properly
19RUN if [ -f go.sum ]; then go mod tidy || true; fi
20
21# Make sure build scripts are executable
22RUN find . -name "*.sh" -exec chmod +x {} \; || true
David Crawshaw11129492025-04-25 20:41:53 -070023
24CMD ["/bin/sketch"]