ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in / |
CMD ["/bin/sh"] |
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
ENV GOLANG_VERSION=1.20.14 |
ENV GOPATH=/go |
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY /usr/local/go/ /usr/local/go/ # buildkit |
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
WORKDIR /go |
LABEL author=Matthew Penner maintainer=matthew@pterodactyl.io |
LABEL org.opencontainers.image.source=https://github.com/pterodactyl/yolks |
LABEL org.opencontainers.image.licenses=MIT |
RUN /bin/sh -c apk add --update --no-cache ca-certificates tzdata && adduser -D -h /home/container container # buildkit |
USER container |
ENV USER=container HOME=/home/container |
WORKDIR /home/container |
COPY ./../entrypoint.sh /entrypoint.sh # buildkit |
CMD ["/bin/ash" "/entrypoint.sh"] |