This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2022-08-16 06:47:21 +00:00
|
|
|
# syntax=docker/dockerfile:1.3
|
|
|
|
FROM debian:bullseye AS build
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG USE_CCACHE
|
2023-01-08 07:35:03 +00:00
|
|
|
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list && \
|
|
|
|
apt-get update && apt-get -y full-upgrade && \
|
|
|
|
apt-get install -y build-essential wget git ccache ninja-build libssl-dev pkg-config libarchive-tools \
|
|
|
|
cmake/bullseye-backports cmake-data/bullseye-backports
|
2022-08-16 06:47:21 +00:00
|
|
|
|
|
|
|
COPY . /root/build-files
|
|
|
|
|
|
|
|
RUN --mount=type=cache,id=ccache,target=/root/.ccache \
|
2022-09-13 00:53:49 +00:00
|
|
|
git clone --depth 1000 -j4 --recursive https://github.com/yuzu-emu/yuzu-mainline.git /root/yuzu-mainline && \
|
2022-08-16 06:47:21 +00:00
|
|
|
cd /root/yuzu-mainline && /root/build-files/.ci/build.sh
|
|
|
|
|
|
|
|
FROM gcr.io/distroless/cc-debian11 AS final
|
|
|
|
LABEL maintainer="yuzuemu"
|
|
|
|
# Create app directory
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY --from=build /root/yuzu-mainline/build/bin/yuzu-room /usr/src/app
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/src/app/yuzu-room" ]
|