mirror of
https://github.com/erebe/wstunnel.git
synced 2026-04-23 00:37:22 +08:00
Bump docker file
Former-commit-id:e9b1a53d3dFormer-commit-id:865078529d
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user