init import

This commit is contained in:
Олег Бородин
2026-05-24 11:02:51 +02:00
commit 25365aef77
154 changed files with 21501 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
FROM alpine:3.23 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.26.2.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.23 AS runner
COPY --from=builder /app /app
RUN chmod 1777 /var
RUN mkdir -p /app/etc/mbase
RUN touch /app/etc/mbase/mbased.yaml
WORKDIR /app
#USER daemon:daemon
ENTRYPOINT ["/app/sbin/mbased", "--asDaemon=false"]