Moving Dockerfile

Using .Net 5 images
Starting to setup test environment with docker-compose
This commit is contained in:
Mark Ettema 2021-05-10 07:46:43 +07:00
parent 03947fdbdc
commit 897b693263
3 changed files with 27 additions and 5 deletions

19
docker-compose.yml Normal file
View file

@ -0,0 +1,19 @@
version: '2'
services:
keycloak:
image: jboss/keycloak
container_name: keycloak
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: changeit
ports:
- 8080:8080
steamidp:
image: neothor/steam-openid-connect-provider
build: ./src
container_name: steamidp
ports:
- 80:80
links:
- keycloak

View file

@ -1,19 +1,19 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
# Copy the project file to create layer with packages
COPY src/SteamOpenIdConnectProvider.csproj .
COPY SteamOpenIdConnectProvider.csproj .
RUN dotnet restore ./SteamOpenIdConnectProvider.csproj
# Copy the rest of the source
COPY src/* .
COPY . .
RUN dotnet build ./SteamOpenIdConnectProvider.csproj -c Release -o /app
FROM build AS publish
RUN dotnet publish ./SteamOpenIdConnectProvider.csproj -c Release -o /app
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
COPY --from=publish /app .
EXPOSE 80

View file

@ -4,14 +4,17 @@
"Default": "Warning"
}
},
"AllowedHosts": "*",
"OpenID": {
"ClientID": "proxy",
"ClientSecret": "secret",
"RedirectUri": "http://localhost:8080/auth/realms/master/broker/steam/endpoint",
"PostLogoutRedirectUri": ""
},
"AllowedHosts": "*",
"Hosting": {
"PathBase": ""
},
"Steam": {
"ApplicationKey": "secret"
}
}