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
14
Dockerfile
14
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"]
|
||||
ENTRYPOINT ["/usr/local/bin/makeshift"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue