Bump docker file

Former-commit-id: e9b1a53d3d
Former-commit-id: 865078529d
This commit is contained in:
Romain GERARD
2020-12-08 09:40:51 +01:00
parent 2cb408b4b8
commit dbb52ed009
+3 -2
View File
@@ -9,7 +9,8 @@ RUN curl -sSL https://github.com/commercialhaskell/stack/releases/download/v2.1.
COPY stack.yaml /mnt
COPY *.cabal /mnt
WORKDIR /mnt
RUN rm -rf ~/.stack && \
RUN sed -i 's/lts-16.25/lts-16.4/' stack.yaml && \
rm -rf ~/.stack && \
stack config set system-ghc --global true && \
stack setup && \
stack install --split-objs --ghc-options="-fPIC" --only-dependencies
@@ -21,6 +22,7 @@ RUN rm -rf ~/.stack && \
FROM ghcr.io/erebe/wstunnel:build-cache as builder
COPY . /mnt
RUN sed -i 's/lts-16.25/lts-16.4/' stack.yaml
RUN echo ' ld-options: -static' >> wstunnel.cabal ; \
stack install --split-objs --ghc-options="-fPIC"
#RUN upx /root/.local/bin/wstunnel
@@ -29,7 +31,6 @@ RUN echo ' ld-options: -static' >> wstunnel.cabal ; \
# Final Image
FROM alpine:latest as runner
MAINTAINER github@erebe.eu
LABEL org.opencontainers.image.source https://github.com/erebe/server