refactor: changed base image from alpine to archlinux
This commit is contained in:
parent
c1c5ec1625
commit
5d9612d5b4
1 changed files with 8 additions and 6 deletions
12
Dockerfile
12
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
|
WORKDIR /tmp
|
||||||
RUN git clone https://git.towk2.me/towk/makeshift.git
|
RUN git clone https://git.towk2.me/towk/makeshift.git
|
||||||
|
|
@ -9,15 +10,16 @@ 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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue