21 строка
745 B
Docker
21 строка
745 B
Docker
# Use this Dockerfile to create a Linux testrunner image
|
|
# docker build -t testrunner -f ./test/Dockerfile.linux.testrunner .
|
|
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock testrunner powershell -File build-and-test.ps1 -UseImageCache
|
|
|
|
FROM ubuntu
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
curl \
|
|
docker.io \
|
|
libicu55 \
|
|
libcurl3 \
|
|
libunwind8 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN curl -o powershell.deb -ssL https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.15/powershell_6.0.0-alpha.15-1ubuntu1.16.04.1_amd64.deb \
|
|
&& dpkg -i powershell.deb \
|
|
&& rm -f powershell.deb
|
|
|
|
WORKDIR test
|
|
COPY . .
|