godot-build-tools/Dockerfile

14 lines
492 B
Docker
Raw Normal View History

2023-07-23 08:30:27 +02:00
FROM golang:1-alpine3.18 AS builder
RUN go build main.go -o /usr/local/bin/godot-build-tool
FROM alpine:3.18
RUN apk add --no-cache unzip
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk \
&& apk add glibc-2.35-r1.apk
WORKDIR /opt
COPY --from=builder /usr/local/bin/godot-build-tool /opt/godot-build-tool
CMD ["/opt/godot-build-tool"]