docker: Add interactive sessions

Provide a nice interface when using the container interactively.
This commit is contained in:
Andre Richter 2017-09-02 22:17:17 +02:00
parent 6e3c76ea23
commit 114de48b20
No known key found for this signature in database
GPG key ID: 2116C1AB102F615E
4 changed files with 19 additions and 3 deletions

View file

@ -1,5 +1,7 @@
FROM rustlang/rust:nightly
ENV IMAGE_NAME=redox-os-docker
RUN set -ex; \
apt-get update; \
apt-get install -q -y --no-install-recommends \
@ -30,8 +32,8 @@ RUN set -ex; \
apt-get clean -q -y; \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
COPY entrypoint.sh /usr/local/bin/
COPY .bash_aliases /etc/skel/
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
ENTRYPOINT ["bash", "/usr/local/bin/entrypoint.sh"]
CMD ["/bin/bash"]