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
RUN git clone https://git.towk2.me/towk/makeshift.git
@ -9,15 +10,16 @@ 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