-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (30 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
# Twitch Environment Settings
ENV Twitch_ChannelName="wu_ging"
ENV Twitch_ChannelId="141867254"
ENV Twitch_Api_ClientId="srrlphfjv53q5lcwssatnjd0bd919e"
ENV Twitch_Api_Secret="r1ake8kzfbau0n6iytggo43e5oezrq"
ENV Twitch_Api_CallbackUrl=""
ENV Twitch_PubSub_OAuth="9yab0s8nh1uj6kd7lyytazkl6aooe9"
#
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
WORKDIR /src
COPY ["OBS React Scenes/OBS React Scenes.csproj", "OBS React Scenes/"]
RUN dotnet restore "OBS React Scenes/OBS React Scenes.csproj"
COPY . .
WORKDIR "/src/OBS React Scenes"
RUN dotnet build "OBS React Scenes.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "OBS React Scenes.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "OBS React Scenes.dll"]