2019-12-19 00:05:02 +03:00
|
|
|
# This uses the latest Docker image built from the samples repository,
|
|
|
|
# defined by the Dockerfile in Build/images/samples.
|
|
|
|
FROM mcr.microsoft.com/quantum/samples:latest
|
2019-04-03 19:01:14 +03:00
|
|
|
|
2019-07-19 18:51:29 +03:00
|
|
|
# Mark that this Dockerfile is used with the samples repository.
|
2019-12-19 00:05:02 +03:00
|
|
|
ENV IQSHARP_HOSTING_ENV=SAMPLES_HOSTED
|
2019-07-19 18:51:29 +03:00
|
|
|
|
|
|
|
# Make sure the contents of our repo are in ${HOME}.
|
|
|
|
# These steps are required for use on mybinder.org.
|
2019-12-19 00:05:02 +03:00
|
|
|
USER root
|
2019-04-03 19:01:14 +03:00
|
|
|
COPY . ${HOME}
|
2019-07-19 18:51:29 +03:00
|
|
|
RUN chown -R ${USER} ${HOME}
|
2019-04-03 19:01:14 +03:00
|
|
|
|
2019-07-19 18:51:29 +03:00
|
|
|
# Finish by dropping back to the notebook user.
|
|
|
|
USER ${USER}
|