forked from XboxDev/nxdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (18 loc) · 954 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2020-2022 Stefan Schmidt
FROM ghcr.io/xboxdev/nxdk-buildbase:git-2c3115b1 AS builder
COPY ./ /usr/src/nxdk/
ENV NXDK_DIR=/usr/src/nxdk
RUN cd /usr/src/nxdk && make tools -j`nproc`
ARG buildparams
RUN eval $(./usr/src/nxdk/bin/activate -s); cd /usr/src/nxdk && make NXDK_ONLY=y $buildparams -j`nproc`
FROM ghcr.io/xboxdev/nxdk-runbase:git-2c3115b1
COPY --from=builder /usr/src/nxdk/ /usr/src/nxdk/
ENV NXDK_DIR=/usr/src/nxdk
WORKDIR /usr/src/app
ENTRYPOINT ["/usr/src/nxdk/docker_entry.sh"]
LABEL org.opencontainers.image.documentation='https://github.com/XboxDev/nxdk/wiki'
LABEL org.opencontainers.image.licenses='(Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later AND MIT)'
LABEL org.opencontainers.image.source='https://github.com/XboxDev/nxdk.git'
LABEL org.opencontainers.image.url='https://github.com/XboxDev/nxdk.git'
LABEL org.opencontainers.image.vendor='XboxDev'