Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Description:

Creates an image containing Ruby 2.2.4.

This dockerfile is for demonstration purposes and may require modification for production use.

Environment:

Windows Server Core Base OS Image

Usage:

Docker Build

docker build -t ruby:latest .

Docker Run

This will display the Ruby version and exit. Modify the Dockerfile appropriately for application use.

docker run -it ruby

Dockerfile Details:

# This dockerfile utilizes components licensed by their respective owners/authors.
# Prior to utilizing this file or resulting images please review the respective licenses at: https://www.ruby-lang.org/en/about/license.txt

FROM microsoft/windowsservercore

LABEL Description="Ruby Programming Language for Windows" Vendor="Ruby" Version="2.2.4-x64"

RUN powershell -Command \
    $ErrorActionPreference = 'Stop'; \
    Invoke-WebRequest -Method Get -Uri http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.2.4-x64.exe -OutFile c:\rubyinstaller-2.2.4-x64.exe ; \
    Start-Process c:\rubyinstaller-2.2.4-x64.exe -ArgumentList '/verysilent' -Wait ; \
    Remove-Item c:\rubyinstaller-2.2.4-x64.exe -Force

WORKDIR /Ruby22-x64/bin

CMD [ "C:/Ruby22-x64/bin/ruby.exe --version" ]