-
-
Save thaJeztah/82d5427b0eae2773a8d6c3a19865ea0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: http://frippery.org/busybox/ | |
# This Dockerfile builds a (32-bit) busybox images which is suitable for | |
# running many of the integration-cli tests for Docker against a Windows | |
# daemon. It will not run on nanoserver as that is 64-bit only. | |
# | |
# John Howard (IRC jhowardmsft, Email [email protected]) | |
# | |
# To build: docker build -t busybox . | |
# To publish: Needs someone with publishing rights | |
# | |
# http://github.com/jhowardmsft/busybox | |
ARG WINDOWS_BASE_IMAGE=mcr.microsoft.com/windows/servercore | |
ARG WINDOWS_BASE_IMAGE_TAG=ltsc2019 | |
FROM ${WINDOWS_BASE_IMAGE}:${WINDOWS_BASE_IMAGE_TAG} | |
RUN mkdir C:\tmp && mkdir C:\bin | |
ADD http://frippery.org/files/busybox/busybox.exe /bin/ | |
RUN setx /M PATH "C:\bin;%PATH%" | |
RUN powershell busybox.exe --list ^|%{$nul = cmd /c mklink C:\bin\$_.exe busybox.exe} | |
CMD ["sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment