Files
anydb/Dockerfile

27 lines
385 B
Docker
Raw Normal View History

2024-12-19 11:23:04 +01:00
FROM golang:1.22-alpine as builder
2024-12-18 18:46:49 +01:00
RUN apk update
RUN apk upgrade
RUN apk add --no-cache git make
RUN git --version
WORKDIR /work
COPY go.mod .
COPY . .
RUN go mod download
RUN make
FROM alpine:latest
LABEL maintainer="Thomas von Dein <git@daemon.de>"
WORKDIR /app
COPY --from=builder /work/anydb /app/anydb
ENV LANG C.UTF-8
USER 1001:1001
ENTRYPOINT ["/app/anydb"]
CMD ["-h"]