emacs-collab/docker/Dockerfile

40 lines
838 B
Docker
Raw Normal View History

2017-06-14 22:45:15 +00:00
FROM ubuntu:xenial
2017-06-15 11:31:29 +00:00
# Install tools
2017-06-14 22:45:15 +00:00
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
2017-06-15 11:31:29 +00:00
# Copy Emacs Shell
2017-06-15 09:26:01 +00:00
COPY tmp/eshell /usr/bin/
2017-06-14 22:45:15 +00:00
2017-06-15 11:31:29 +00:00
# Install Ruby gems
2017-06-15 09:26:01 +00:00
COPY tmp/Gemfile* /tmp/
2017-06-14 22:45:15 +00:00
WORKDIR /tmp
RUN bundle install
2017-06-15 11:31:29 +00:00
#ENV BUNDLE_PATH /box
#ADD ../. $app
# TeX Live
ENV TEX /tex
RUN mkdir $TEX
COPY tmp/texlive $TEX
RUN echo 'export PATH=$PATH:/tex/bin/x86_64-linux' > /etc/profile.d/texlive.sh
# Copy run_server
2017-06-14 22:45:15 +00:00
ENV app /app
RUN mkdir $app
2017-06-15 11:31:29 +00:00
COPY tmp/run_server.sh $app
2017-06-14 22:45:15 +00:00
WORKDIR $app
VOLUME /home
EXPOSE 22
2017-06-15 09:26:01 +00:00
ENTRYPOINT ["/app/run_server.sh"]