2017-10-01 21:36:50 +00:00
|
|
|
# vim:ft=dockerfile
|
2018-08-15 02:02:47 +00:00
|
|
|
|
2022-10-17 20:08:12 +00:00
|
|
|
# Base image
|
|
|
|
FROM ubuntu:20.04 AS base
|
2017-10-01 21:36:50 +00:00
|
|
|
|
2022-10-17 13:29:05 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
cmake libgmp-dev libmpfr-dev libmpc-dev \
|
|
|
|
libboost-all-dev bison texinfo \
|
2022-10-17 21:24:08 +00:00
|
|
|
ruby flex curl g++ git
|
2017-10-01 21:36:50 +00:00
|
|
|
|
2022-10-17 20:08:12 +00:00
|
|
|
# Build image
|
|
|
|
FROM base AS build
|
|
|
|
|
2018-08-15 02:02:47 +00:00
|
|
|
ADD . /Retro68
|
|
|
|
|
2022-10-17 20:08:12 +00:00
|
|
|
RUN mkdir /Retro68-build && \
|
|
|
|
bash -c "cd /Retro68-build && bash /Retro68/build-toolchain.bash"
|
|
|
|
|
|
|
|
# Release image
|
|
|
|
FROM base AS release
|
2017-10-01 21:36:50 +00:00
|
|
|
|
2022-10-17 20:08:12 +00:00
|
|
|
COPY --from=build /Retro68-build/toolchain /Retro68-build/toolchain
|