Last active
August 3, 2017 01:25
-
-
Save HauptJ/2630a6018c91cde959b88cecf9011ef7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
# Dockerfile for C++ and Python Dev | |
# Based on Ubuntu | |
############################################################ | |
# Set the base image to Ubuntu Baseimage | |
FROM phusion/baseimage | |
# File Author / Maintainer | |
MAINTAINER josh@hauptj.com | |
################## BEGIN INSTALLATION ###################### | |
# Update the repository sources list once more | |
RUN apt-get update && apt-get upgrade -y | |
# Install GIT, C and C++ compilers Python 3 and 3, libraries, openssh-server | |
RUN apt-get install -y git build-essential clang-3.8 clang++-3.8 lldb-3.8 gcc g++ libboost-all-dev python python3 openssh-server | |
##################### CONFIGURE REMOTE SSH ##################### | |
#RUN mkdir /var/run/sshd | |
RUN echo 'root:screencast' | chpasswd | |
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
# 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 | |
ENV NOTVISIBLE "in users profile" | |
RUN echo "export VISIBLE=now" >> /etc/profile | |
# Expose ssh | |
EXPOSE 22 | |
CMD ["/usr/sbin/sshd", "-D"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment