From 5d9612d5b424f5baa404285b45154b2e02167a37 Mon Sep 17 00:00:00 2001 From: David Allen Date: Mon, 3 Nov 2025 20:48:19 -0700 Subject: [PATCH] refactor: changed base image from alpine to archlinux --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09456c3..38ff8d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ -FROM alpine:latest AS builder +FROM archlinux:latest AS builder -RUN apk add go git gcc binutils bash +RUN pacman -Sy +RUN pacman -S go git gcc binutils bash --noconfirm WORKDIR /tmp RUN git clone https://git.towk2.me/towk/makeshift.git @@ -9,19 +10,20 @@ WORKDIR /tmp/makeshift RUN go mod tidy && \ go build && \ - mkdir tmp && \ - ./makeshift plugins compile ./pkg/plugins/jinja2/jinja2.go -o ./tmp/plugins/jinja.so + mkdir -p /makeshift +RUN ./makeshift init /makeshift +RUN ./makeshift plugins compile ./pkg/plugins/jinja2/jinja2.go -o ./tmp/plugins/jinja.so FROM alpine:latest COPY --from=builder /tmp/makeshift/makeshift /usr/local/bin -COPY --from=builder /tmp/makeshift/tmp/plugins/* /makeshift/server/plugins/ +COPY --from=builder /tmp/makeshift/tmp/plugins/* /makeshift/plugins/ RUN chmod +x /usr/local/bin/makeshift RUN mkdir -p /makeshift/logs && \ touch /makeshift/logs/makeshift.log -ENTRYPOINT ["/usr/local/bin/makeshift"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/makeshift"]