2021-12-27 02:30:33 +00:00
|
|
|
# syntax=docker/dockerfile:1.3
|
2021-10-22 00:13:40 +00:00
|
|
|
FROM debian:bullseye AS build
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2021-12-27 02:30:33 +00:00
|
|
|
ARG USE_CCACHE
|
2021-10-22 00:13:40 +00:00
|
|
|
RUN apt-get update && apt-get -y full-upgrade && \
|
2022-06-08 01:27:18 +00:00
|
|
|
apt-get install -y build-essential wget git ccache cmake ninja-build libssl-dev
|
2018-03-07 23:32:18 +00:00
|
|
|
|
2021-10-22 00:13:40 +00:00
|
|
|
COPY . /root/build-files
|
|
|
|
|
2021-12-27 02:30:33 +00:00
|
|
|
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 && \
|
2021-10-22 00:13:40 +00:00
|
|
|
cd /root/citra-canary && /root/build-files/.ci/build.sh
|
|
|
|
|
2022-06-08 02:36:34 +00:00
|
|
|
FROM gcr.io/distroless/cc-debian11 AS final
|
2021-10-22 00:13:40 +00:00
|
|
|
LABEL maintainer="citraemu"
|
2018-03-07 23:32:18 +00:00
|
|
|
# Create app directory
|
|
|
|
WORKDIR /usr/src/app
|
2021-10-22 00:13:40 +00:00
|
|
|
COPY --from=build /root/citra-canary/build/bin/Release/citra-room /usr/src/app
|
2018-03-07 23:32:18 +00:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/src/app/citra-room" ]
|