Sha256: 48a9a7a36d364c803bf9baf1ec61f139d6acc041e1811e3de4fe10256613f3e8
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
FROM <%= from %> USER root RUN useradd -m -U -d <%= CIDE_DIR %> cide # Install system build dependencies here <% as_root.each do |cmd| -%> RUN <%= cmd %> <% end -%> # Common ENV HOME <%= CIDE_DIR %> WORKDIR <%= CIDE_SRC_DIR %> # SSH config <% if ssh_key -%> ADD ssh_config <%= File.expand_path('config', CIDE_SSH_DIR) %> RUN chmod 400 <%= File.expand_path('config', CIDE_SSH_DIR) %> ADD <%= ssh_key %> <%= File.expand_path('id_rsa', CIDE_SSH_DIR) %> RUN chmod 400 <%= File.expand_path('id_rsa', CIDE_SSH_DIR) %> RUN chmod 755 <%= CIDE_SSH_DIR %> RUN chown -R cide:cide <%= CIDE_DIR %> <% end %> # Before <% if before['run'] -%> <% before['forward_env'].to_a.each do |key| -%> ENV <%= key %> <%= ENV[key] %> <% end %> <% before['add'].to_a.each do |file| -%> ADD <%= file %> <%= File.expand_path(file, CIDE_SRC_DIR) %> <% end %> RUN chown -R cide:cide <%= CIDE_DIR %> USER cide RUN <%= before['run'] %> USER root <% end -%> # Add project data ADD . <%= CIDE_SRC_DIR %> RUN chown -R cide:cide <%= CIDE_DIR %> # ENV <% forward_env.to_a.each do |key| -%> ENV <%= key %> <%= ENV[key] %> <% end %> # Test ! USER cide RUN <%= run %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cide-0.0.8 | lib/cide_template.erb |