-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
38 lines (30 loc) · 1.06 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
FROM devkitpro/devkita64 as base
ENV DEVKITPRO /opt/devkitpro
ENV DEVKITA64 ${DEVKITPRO}/devkitA64
ENV DEVKITARM ${DEVKITPRO}/devkitARM
ENV DEVKITPPC ${DEVKITPRO}/devkitPPC
ENV PORTLIBS_PREFIX ${DEVKITPRO}/portlibs/switch
ENV PATH ${DEVKITPRO}/tools/bin:$PATH
ENV PATH ${DEVKITA64}/bin/:$PATH
ENV WORK_DIR /home/work
RUN mkdir -p $WORK_DIR
WORKDIR $WORK_DIR
ENV REPO_DIR $WORK_DIR/repo
ENV BUILD_DIR $WORK_DIR/build
ENV INSTALL_DIR $WORK_DIR/install
RUN mkdir -p $REPO_DIR
RUN mkdir -p $BUILD_DIR
RUN mkdir -p $INSTALL_DIR
SHELL ["/bin/bash", "-c"]
RUN mkdir -p $REPO_DIR/SimpleModManager
RUN mkdir -p $BUILD_DIR/SimpleModManager
COPY . $REPO_DIR/SimpleModManager
RUN cd $REPO_DIR/SimpleModManager && \
git submodule update --init --recursive && \
cd $BUILD_DIR/SimpleModManager && \
# for some reason yaml-cpp in not found by cmake, so put the paths manually
cmake \
-D CMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-D CMAKE_TOOLCHAIN_FILE=$REPO_DIR/SimpleModManager/cmake/devkita64-libnx.cmake \
$REPO_DIR/SimpleModManager && \
make -j3 install