refactor: changed base image from alpine to archlinux

This commit is contained in:
David Allen 2025-11-03 20:48:19 -07:00
parent c1c5ec1625
commit 5d9612d5b4
Signed by: towk
GPG key ID: 0430CDBE22619155

View file

@ -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 WORKDIR /tmp
RUN git clone https://git.towk2.me/towk/makeshift.git RUN git clone https://git.towk2.me/towk/makeshift.git
@ -9,19 +10,20 @@ WORKDIR /tmp/makeshift
RUN go mod tidy && \ RUN go mod tidy && \
go build && \ go build && \
mkdir tmp && \ mkdir -p /makeshift
./makeshift plugins compile ./pkg/plugins/jinja2/jinja2.go -o ./tmp/plugins/jinja.so RUN ./makeshift init /makeshift
RUN ./makeshift plugins compile ./pkg/plugins/jinja2/jinja2.go -o ./tmp/plugins/jinja.so
FROM alpine:latest FROM alpine:latest
COPY --from=builder /tmp/makeshift/makeshift /usr/local/bin 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 chmod +x /usr/local/bin/makeshift
RUN mkdir -p /makeshift/logs && \ RUN mkdir -p /makeshift/logs && \
touch /makeshift/logs/makeshift.log touch /makeshift/logs/makeshift.log
ENTRYPOINT ["/usr/local/bin/makeshift"] ENTRYPOINT ["/usr/local/bin/makeshift"]