Add Dockerfile

parent 16ba7483
FROM golang:alpine AS builder
LABEL authors="Christian Muehlhaeuser:"
# Install git & make
# Git is required for fetching the dependencies
RUN apk update && \
apk add --no-cache git alpine-sdk ca-certificates aqbanking aqbanking-dev gwenhywfar-dev && \
# Set the working directory for the container
WORKDIR /go/sangha
# Build the binary
COPY . .
RUN go build
FROM alpine
RUN apk update && \
apk add --no-cache ca-certificates tzdata aqbanking gwenhywfar && \
COPY --from=builder /go/sangha/hbci /go/bin/hbci
# create a volume for the configuration persistence
VOLUME /conf
# This form of ENTRYPOINT allows the sangha process to catch signals from the `docker stop` command
ENTRYPOINT /go/bin/hbci --config /conf/hbci.conf fetch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment