1
0
Fork 0

dockerfile: further reduces image size ...

... by using Google's Distroless image
This commit is contained in:
liushuyu 2022-06-07 20:36:34 -06:00
parent ae7cf49152
commit ac6ea2e7a8
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
1 changed files with 1 additions and 3 deletions

View File

@ -11,10 +11,8 @@ RUN --mount=type=cache,id=ccache,target=/root/.ccache \
git clone --depth 1000 --recursive https://github.com/citra-emu/citra-canary.git /root/citra-canary && \ git clone --depth 1000 --recursive https://github.com/citra-emu/citra-canary.git /root/citra-canary && \
cd /root/citra-canary && /root/build-files/.ci/build.sh cd /root/citra-canary && /root/build-files/.ci/build.sh
FROM debian:bullseye-slim AS final FROM gcr.io/distroless/cc-debian11 AS final
LABEL maintainer="citraemu" LABEL maintainer="citraemu"
RUN apt-get update && apt-get install -y ca-certificates && \
rm -rf /var/lib/apt/lists/
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY --from=build /root/citra-canary/build/bin/Release/citra-room /usr/src/app COPY --from=build /root/citra-canary/build/bin/Release/citra-room /usr/src/app