-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 800 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# DEPENDENCIES
# fabric-shim needs node ^18.0.0
FROM golang:1.24.6-bullseye AS build
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends build-essential jq python3 libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev git
WORKDIR /usecase
# copy ./ to keep the directory structure as well. Using * would only copy over the files
COPY --chmod=0777 ./ .
RUN git config --global user.email "hello@settlemint.com" && \
git config --global user.name "SettleMint" && \
rm -Rf Dockerfile .dockerignore .github
# Install go dependencies
WORKDIR /usecase/src
RUN go mod vendor
USER root
FROM cgr.dev/chainguard/busybox:latest
COPY --from=build /usecase /usecase