Manuel
1205933acd
* Allow container to be run with custom command * Reduce language image sizes * Update OpenJDK to latest version * Use swc for TypeScript and don't print by default * Update Haskell image and use stable Debian slim * Fix formatting and revert TS changes
19 lines
No EOL
591 B
Text
19 lines
No EOL
591 B
Text
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
|
|
|
|
ENTRYPOINT ["./myriad"] |