Commit b72f75f3 authored by nanahira's avatar nanahira

update Dockerfile

parent 7acab1c7
...@@ -23,21 +23,18 @@ RUN xbuild /p:Configuration=Release /p:TargetFrameworkVersion=v4.6 ...@@ -23,21 +23,18 @@ RUN xbuild /p:Configuration=Release /p:TargetFrameworkVersion=v4.6
FROM debian:buster-slim FROM debian:buster-slim
RUN apt-get update && \ RUN apt-get update && \
apt-get -y install xfonts-utils fontconfig wget p7zip-full mono-complete && \ apt-get -y install wget p7zip-full mono-complete xfonts-utils fontconfig && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
WORKDIR / COPY --from=builder /ImgGen/bin/Release /usr/src/app
WORKDIR /usr/src/app
RUN wget https://minio.mycard.moe:9000/nanahira/ImgGen-Fonts.7z && \ RUN wget https://minio.mycard.moe:9000/nanahira/ImgGen-Fonts.7z && \
7z x -y -o/usr/share/fonts ImgGen-Fonts.7z && \ 7z x -y ImgGen-Fonts.7z && \
rm -rf ImgGen-Fonts.7z && \ rm -rf ImgGen-Fonts.7z && \
cp -rf fonts /usr/share/ && \
mkfontscale && \ mkfontscale && \
mkfontdir && \ mkfontdir && \
fc-cache -fv fc-cache -fv
COPY --from=builder /ImgGen/bin/Release /usr/src/app
WORKDIR /usr/src/app
RUN cp -rf /usr/share/fonts/ImgGen.exe.config .
ENTRYPOINT [ "mono" ] ENTRYPOINT [ "mono" ]
CMD [ "ImgGen.exe", "./cards.cdb" ] CMD [ "ImgGen.exe", "./cards.cdb" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment