Created
January 15, 2019 00:21
-
-
Save guitarrapc/2dd7153b0efa8b881b483be2cb030a36 to your computer and use it in GitHub Desktop.
C# Selenium + Chrome Headless to detect mixed content
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
FROM microsoft/dotnet:2.2-sdk-bionic AS build | |
WORKDIR /app | |
# restore | |
COPY src/MixedContentChecker/*.csproj ./MixedContentChecker/ | |
WORKDIR /app/MixedContentChecker | |
RUN dotnet restore | |
# build | |
WORKDIR /app | |
COPY src/. /app/ | |
WORKDIR /app | |
RUN dotnet build -c Release -o out | |
RUN dotnet publish -c Release -o out | |
# runtime | |
FROM microsoft/dotnet:2.2-runtime-bionic AS runtime | |
WORKDIR /app | |
RUN apt-get update && apt-get install -y wget | |
RUN apt install -y gdebi \ | |
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ | |
&& gdebi -n google-chrome-stable_current_amd64.deb \ | |
&& rm google-chrome-stable_current_amd64.deb | |
COPY --from=build /app/MixedContentChecker/out ./ | |
CMD ["dotnet", "MixedContentChecker.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment