Skip to content

Instantly share code, notes, and snippets.

@happysysadm
Created November 18, 2016 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save happysysadm/d998a0d1904d52b508a71982e81c2a14 to your computer and use it in GitHub Desktop.
Save happysysadm/d998a0d1904d52b508a71982e81c2a14 to your computer and use it in GitHub Desktop.
Dockerfile for Image2Docker
# escape=`
# Indicates that the windowsservercore image will be used as the base image.
FROM microsoft/nanoserver
# Metadata indicating an image maintainer.
MAINTAINER carlo@happysysadm.com
# Sets a command or process that will run each time a container is run from the new image.
RUN powershell.exe Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
RUN powershell.exe Install-Module Image2Docker -SkipPublisherCheck -Force -Confirm:$False
ENTRYPOINT Powershell.exe ConvertTo-Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment