# This is a version of the app-ng Dockerfile that is compatible with
# crusty old versions of docker (like the one installed on big-qvm)
# that do not support ARG directives or COPY --from. Humph.

FROM rigetti/quilc:1.15.1
FROM rigetti/lisp:2019-11-30
RUN git clone --branch v1.15.1 --depth=1 https://github.com/rigetti/quilc /src/quilc

# build the qvm-ng app
ADD . /src/qvm
WORKDIR /src/qvm
RUN git clean -fdx && make qvm-ng

EXPOSE 5222

ENTRYPOINT ["./qvm-ng"]
CMD ["-S"]
