Smaller output image.
This commit is contained in:
parent
3bbfd4c899
commit
544d49a013
1 changed files with 17 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
FROM nvidia/opencl:runtime
|
||||
FROM mono:5.8 AS build
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends clinfo mono-complete mono-devel libssl-dev curl tzdata && \
|
||||
apt-get install -y --no-install-recommends clinfo libssl-dev curl tzdata && \
|
||||
apt-get remove mesa-* && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
@ -15,6 +15,20 @@ RUN curl -s -L https://github.com/lachesis/scallion/archive/gpg.tar.gz | \
|
|||
|
||||
RUN xbuild scallion.sln /p:TargetFrameworkVersion="v4.5"
|
||||
|
||||
RUN cd /usr/lib/x86_64-linux-gnu && ln -s libOpenCL.so.1.0.0 libOpenCL.so
|
||||
FROM nvidia/opencl:runtime AS run
|
||||
|
||||
COPY --from=build /app /app
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends mono-runtime mono-xbuild clinfo libssl1.0.0 && \
|
||||
apt-get remove mesa-* && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN cd /usr/lib/x86_64-linux-gnu && \
|
||||
ln -s libOpenCL.so.1.0.0 libOpenCL.so && \
|
||||
cd /lib/x86_64-linux-gnu && \
|
||||
ln -s libcrypto.so.1.0.0 libcrypto.so && \
|
||||
ln -s libssl.so.1.0.0 libssl.so
|
||||
|
||||
ENTRYPOINT ["mono", "/app/scallion/bin/Debug/scallion.exe"]
|
||||
|
|
Loading…
Add table
Reference in a new issue