emacs-collab/docker/Dockerfile

29 lines
582 B
Docker
Raw Normal View History

2017-06-14 22:45:15 +00:00
FROM ubuntu:xenial
RUN apt-get update
RUN apt-get install -y emacs-nox openssh-server
RUN apt-get install -y ruby ruby-dev build-essential libsqlite3-dev sqlite3
RUN gem install bundler
2017-06-14 22:45:15 +00:00
RUN mkdir /var/run/sshd
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
ADD eshell /usr/bin/
COPY Gemfile* /tmp/
WORKDIR /tmp
RUN bundle install
ENV app /app
RUN mkdir $app
WORKDIR $app
#ENV BUNDLE_PATH /box
#ADD ../. $app
VOLUME /home
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]