forked from hrydgard/ppsspp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (22 loc) · 987 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
28
29
30
31
# First stage
FROM alpine:latest
COPY . /src
RUN apk add build-base wget git bash cmake python3 glu-dev
# Installing SDL2 from source because current SDL2 package in alpine
# has some tricks that make PPSSPP compilation to fail
ENV SDL_VERSION=2.0.20
RUN wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-${SDL_VERSION}.tar.gz && \
tar -xf release-${SDL_VERSION}.tar.gz && cd SDL-release-${SDL_VERSION} && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make -j$(getconf _NPROCESSORS_ONLN) clean && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make -j$(getconf _NPROCESSORS_ONLN) install
RUN cd src/ffmpeg && ./linux_x86-64.sh
RUN cd src && ./b.sh --headless
# Second stage
FROM alpine:latest
# Install required dependencies to make headless to work
RUN apk add --no-cache sdl2 libstdc++ glu-dev
# Copy minimal things to make headless to work
COPY --from=0 src/build/PPSSPPHeadless usr/local/bin/
RUN PPSSPPHeadless || true