Add Dockerfile and docker-compose example (#11)

This commit is contained in:
Manuel 2021-05-08 19:22:12 +02:00 committed by GitHub
parent d83283466c
commit c186ecf521
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 0 deletions

19
Dockerfile.release Normal file
View file

@ -0,0 +1,19 @@
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
CMD ["./myriad"]