2021-05-08 19:22:12 +02:00
|
|
|
FROM frolvlad/alpine-glibc:latest as build
|
|
|
|
|
|
|
|
ARG MYRIAD_VERSION=0.5.0.3
|
|
|
|
ARG GHC_VERSION=8.8.3
|
|
|
|
|
|
|
|
RUN apk add --no-cache curl tar gzip
|
|
|
|
WORKDIR /tmp/myriad
|
|
|
|
RUN curl -OL https://github.com/1Computer1/myriad/releases/download/${MYRIAD_VERSION}/myriad-${MYRIAD_VERSION}-Linux-${GHC_VERSION}.tar.gz && \
|
|
|
|
tar -xzf myriad-${MYRIAD_VERSION}-Linux-${GHC_VERSION}.tar.gz && \
|
|
|
|
rm -f myriad-${MYRIAD_VERSION}-Linux-${GHC_VERSION}.tar.gz
|
|
|
|
|
|
|
|
FROM frolvlad/alpine-glibc:latest
|
|
|
|
RUN apk add --no-cache docker-cli gmp
|
|
|
|
WORKDIR /opt/myriad
|
|
|
|
COPY --from=build /tmp/myriad .
|
|
|
|
|
|
|
|
EXPOSE 8081
|
|
|
|
|
2021-05-31 06:20:21 +02:00
|
|
|
ENTRYPOINT ["./myriad"]
|