Add Dockerfile and docker-compose example (#11)
This commit is contained in:
parent
d83283466c
commit
c186ecf521
3 changed files with 73 additions and 0 deletions
19
Dockerfile.release
Normal file
19
Dockerfile.release
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue