FROM alpine:3.10

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

RUN apk add --update \
    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=musl \
 && ponyup update stable nightly --libc=musl \
 && ponyup update corral nightly --libc=musl

CMD ponyc

FROM alpine:3.10

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

RUN apk add --update \
    curl \
    build-base \
    binutils-gold \
    libexecinfo-dev

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

CMD ponyc

Make musl latest images usable on Pony playground
Make musl latest images usable on Pony playground

You can't compile programs in the existing images due to missing
dependencies.

Closes #3389
