mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-12-22 01:47:31 +01:00
24 lines
497 B
Docker
24 lines
497 B
Docker
FROM golang:1.19-bullseye as build
|
|
|
|
WORKDIR /build
|
|
COPY . .
|
|
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o cic-custodial -ldflags="-s -w" cmd/service/*.go
|
|
|
|
FROM debian:bullseye-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN set -x && \
|
|
apt-get update && \
|
|
apt-get install -y ca-certificates && \
|
|
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
|
|
|
|
WORKDIR /service
|
|
|
|
COPY --from=build /build/cic-custodial .
|
|
COPY config.toml .
|
|
COPY queries .
|
|
|
|
CMD ["./cic-custodial"]
|
|
|
|
EXPOSE 5000
|