Sha256: 4833a340f9e31e862d5fccb3387d4b55b561535b7d3094de3d61e5007864aa11
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
require 'yaml' require_relative 'common' module Kontena::Cli::Apps class DockerfileGenerator include Common def generate(base_image, maintainer) dockerfile = File.new('Dockerfile', 'w') dockerfile.puts "FROM #{base_image}" dockerfile.puts "MAINTAINER #{maintainer}" dockerfile.puts 'CMD ["/start", "web"]' dockerfile.close end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-0.9.1 | lib/kontena/cli/apps/dockerfile_generator.rb |