Sha256: 71afa4bc01c35ddaf1ce30e082687f3fdf2ac84c014986863970f39b2ea8c51c
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 KB
Contents
FROM <%= @image %> LABEL version="0.1" LABEL maintainer="<%= @maintainer %>" LABEL description="Dockerfile generated by dockerun" LABEL dockerun-info="https://github.com/chrisliaw/dockerun" <% case @image_base.to_sym when :fedora %> RUN dnf update && dnf install sudo git curl <% when :debian %> RUN apt-get update && apt-get install -y sudo git curl build-essential vim <% end %> <% if TR::RTUtils.on_linux? and @match_user == true %> RUN groupadd -f -g <%= @user_group_id %> <%= @user_group_name %> && \ useradd -u <%= @user_id %> -g <%= @user_group_id %> -m <%= @user_login %> && \ usermod -aG sudo <%= @user_login %> && \ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers USER <%= @user_login %> # from this point onwards, sudo is required for privileaged operation #RUN sudo apt-get install -y curl build-essential <% if not (@docker_init_file_path.nil? or @docker_init_file_path.empty?) %> COPY <%= File.basename(@docker_init_file_path) %> /home/<%= @user_login %>/docker_init.rb #RUN chown <%= @user_login %>:<%= @user_group_name %> /home/<%= @user_login %>/docker_init.rb RUN ruby /home/<%= @user_login %>/docker_init.rb <% end %> <% end %> <% if not_empty?(@working_dir) %> WORKDIR <%= @working_dir %> <% end %> # other Dockerfile entries starts here CMD [ "/bin/bash", "--login" ]
Version data entries
6 entries across 6 versions & 1 rubygems