diff --git a/Dockerfile.old b/Dockerfile.old index 7fd1976..3c97149 100644 --- a/Dockerfile.old +++ b/Dockerfile.old @@ -1,7 +1,7 @@ -FROM alpine:3.9 as builder +FROM alpine:3.11 as builder MAINTAINER github@erebe.eu -RUN apk --no-cache add ca-certificates git ghc curl musl-dev gmp-dev zlib-dev pcre-dev xz make upx +RUN apk --no-cache add ca-certificates git ghc curl musl-dev gmp-dev zlib-dev zlib-static pcre-dev xz make upx RUN curl -sSL https://github.com/commercialhaskell/stack/releases/download/v2.1.3/stack-2.1.3-linux-x86_64-static.tar.gz | tar xvz && \ mv stack*/stack /usr/bin @@ -12,13 +12,13 @@ WORKDIR /mnt RUN rm -rf ~/.stack && \ stack config set system-ghc --global true && \ stack setup && \ - stack install --split-objs --ghc-options="-fPIC -fllvm" --only-dependencies + stack install --split-objs --ghc-options="-fPIC" --only-dependencies COPY . /mnt RUN echo ' ld-options: -static' >> wstunnel.cabal ; \ - stack install --split-objs --ghc-options="-fPIC -fllvm" -RUN upx --ultra-brute /root/.local/bin/wstunnel + stack install --split-objs --ghc-options="-fPIC" +#RUN upx /root/.local/bin/wstunnel