Skip to content

Instantly share code, notes, and snippets.

@sfiera
Last active October 10, 2019 22:24
Show Gist options
  • Save sfiera/5c93117d353b72e14d07e32c56d32d2c to your computer and use it in GitHub Desktop.
Save sfiera/5c93117d353b72e14d07e32c56d32d2c to your computer and use it in GitHub Desktop.
Retro68 Dockerfile
FROM ubuntu:18.04 AS build
RUN apt-get update \
&& apt-get install -y \
bison \
cmake \
curl \
flex \
git \
libboost-all-dev \
libgmp-dev \
libmpc-dev \
libmpfr-dev \
ruby \
texinfo \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/autc04/Retro68 /Retro68
WORKDIR /Retro68
RUN git checkout 37cb3b8
RUN git submodule update --init
RUN mkdir /Retro68/build
WORKDIR /Retro68/build
RUN ../build-toolchain.bash --no-carbon --prefix=/opt/Retro68
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y \
build-essential \
libboost-filesystem1.65.1 \
libboost-program-options1.65.1 \
libboost-regex1.65.1 \
libboost-wave1.65.1 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /opt/Retro68/ /opt/Retro68/
RUN mkdir /src
WORKDIR /src
ENV PATH=/opt/Retro68/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment