我已经克隆了这个项目,它可以在我的旧机器和我的队友上运行,并尝试构建它:
docker-compose build
但它会为这些库抛出构建错误
Errors were encountered while processing:
ghc
libghc-hsopenssl-dev
libghc-network-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'web' failed to build : The command '/bin/sh -c apt-get install -y libgnutls28-dev libghc-hsopenssl-dev libghc-hsopenssl-dev' returned a non-zero code: 100
我想知道错误在哪里?是否有 macOS 更新?或库兼容性或新的 m1 架构?
我试过了:
docker-compose build --no-cache
并在 Dockerfile 的命令中添加 -f
apt-get install -y libgnutls28-dev libghc-hsopenssl-dev libghc-hsopenssl-dev -f