File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- FROM alpine:3.19 AS base_gcc
1+ FROM alpine:3.21 AS base_gcc
22
3- RUN apk add --update alpine-sdk git wget
3+ RUN apk add --update alpine-sdk git wget sdl2-dev sdl2_mixer-dev
44
55# copy in the source code
66WORKDIR /home/root/rv32emu
77COPY . .
88
99# generate execution file for rv32emu and rv_histogram
10- RUN make ENABLE_SDL=0
10+ RUN make
1111RUN make tool
1212
1313FROM alpine:3.19 AS final
1414
1515# copy in elf files
1616COPY ./build/*.elf /home/root/rv32emu/build/
1717
18- # get rv32emu and rv_histogram binaries
18+ # get rv32emu and rv_histogram binaries and lib of SDL2 and SDL2_mixer
19+ COPY --from=base_gcc /usr/include/SDL2/ /usr/include/SDL2/
20+ COPY --from=base_gcc /usr/lib/libSDL2* /usr/lib/
1921COPY --from=base_gcc /home/root/rv32emu/build/rv32emu /home/root/rv32emu/build/rv32emu
2022COPY --from=base_gcc /home/root/rv32emu/build/rv_histogram /home/root/rv32emu/build/rv_histogram
2123
You can’t perform that action at this time.
0 commit comments