feat: updated dockerfile and added compose
This commit is contained in:
parent
a08f9ce5a0
commit
7713c2e55d
2 changed files with 37 additions and 9 deletions
31
Dockerfile
31
Dockerfile
|
|
@ -1,14 +1,27 @@
|
|||
FROM cgr.dev/chainguard/wolfi-base
|
||||
FROM alpine:latest AS builder
|
||||
|
||||
RUN apk add --no-cache tini bash
|
||||
RUN mkdir -p /configurator
|
||||
RUN apk add go git gcc binutils bash
|
||||
|
||||
# nobody 65534:65534
|
||||
USER 65534:65534
|
||||
WORKDIR /tmp
|
||||
RUN git clone https://git.towk2.me/towk/makeshift.git
|
||||
|
||||
# copy the binary and all of the default plugins
|
||||
COPY configurator /configurator/configurator
|
||||
WORKDIR /tmp/makeshift
|
||||
|
||||
CMD ["/configurator/configurator"]
|
||||
RUN go mod tidy && \
|
||||
go build && \
|
||||
mkdir tmp && \
|
||||
./makeshift plugins compile ./pkg/plugins/jinja2/jinja2.go -o ./tmp/plugins/jinja.so
|
||||
|
||||
ENTRYPOINT [ "/sbin/tini", "--" ]
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
||||
COPY --from=builder /tmp/makeshift/makeshift /usr/local/bin
|
||||
COPY --from=builder /tmp/makeshift/tmp/plugins/* /makeshift/server/plugins/
|
||||
|
||||
RUN chmod +x /usr/local/bin/makeshift
|
||||
|
||||
RUN mkdir -p /makeshift/logs && \
|
||||
touch /makeshift/logs/makeshift.log
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/makeshift"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue