blob: d242b1ac82f2c28bb5dca36751b87235a9876bcd (
plain)
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
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env
MAINTAINER Dennis Kobert <d-kobert@web.de>
# Install cgit
#RUN git clone git://github.com/TrueDoctor/DiscoBot && mkdir DiscoBot/app && cp DiscoBot/dsa/*.sln DiscoBot/app/
#WORKDIR /DiscoBot/app
#RUN ls -la && dotnet restore
# Copy everything else and build
#RUN cp -r ../DSACore/ ../app && dotnet publish -c Release -o out
RUN git clone git://github.com/TrueDoctor/DiscoBot && cd DiscoBot/dsa && git checkout 2.2 && dotnet restore
WORKDIR /DiscoBot/DSACore
# Copy everything else and build
RUN dotnet publish -c Release -o out
# Build runtime image
FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app/
COPY Token ./
COPY --from=build-env /DiscoBot/DSACore/out .
COPY --from=build-env /DiscoBot/DSACore/Properties ./Properties
RUN ls /app/Properties
#RUN cp -r /DiscoBot/DSACore/Properties ./
ENTRYPOINT ["dotnet", "DSACore.dll"]
|