FROM ubuntu:18.04

ENV PATH "/root/.pony/ponyup/bin:$PATH"

RUN apt-get update \
 && apt-get install -y \
    curl

RUN curl -s --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/master/ponyup-init.sh | sh \
 && ponyup update ponyc nightly --libc=gnu \
 && ponyup update stable nightly --libc=gnu \
 && ponyup update corral nightly --libc=gnu

CMD ponyc

FROM ubuntu:18.04

ENV PATH "/root/.pony/ponyup/bin:$PATH"

RUN apt-get update \
 && apt-get install -y \
    curl \
    g++

RUN curl -s --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/master/ponyup-init.sh | sh \
 && ponyup update ponyc nightly --libc=gnu \
 && ponyup update stable nightly --libc=gnu \
 && ponyup update corral nightly --libc=gnu

CMD ponyc

Allow gnu latest images to be used with the Pony playground
Allow gnu latest images to be used with the Pony playground

Was missing dependencies needed to build and link programs in the image.

Closes #3388
