mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 09:56:22 +00:00
Moving Dockerfile
Using .Net 5 images Starting to setup test environment with docker-compose
This commit is contained in:
parent
03947fdbdc
commit
897b693263
3 changed files with 27 additions and 5 deletions
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal 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
|
|
@ -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
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue