working commit

This commit is contained in:
2026-02-14 21:17:15 +02:00
parent 29524e725b
commit 3b6be8033e
24 changed files with 514 additions and 39 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM alpine:3.20 as builder
RUN apk --no-cache add make binutils gcc libc-dev automake autoconf curl
RUN curl -o /usr/local/lib/go.tar.gz https://dl.google.com/go/go1.25.5.linux-amd64.tar.gz
RUN cd /usr/local/lib && tar xzf go.tar.gz
RUN cd /usr/local/bin && ln -sf ../lib/go/bin/* .
WORKDIR /app/src/
COPY go.mod go.sum .
COPY . .
RUN ./configure --prefix=/app
RUN make all install
RUN make clean
RUN rm -rf /app/src
FROM alpine:3.20
COPY --from=builder /app /app
RUN chmod 1777 /var
WORKDIR /app
#USER daemon:daemon
ENTRYPOINT ["/app/sbin/mstored"]