blob: 6a0f64d00ed634c42b0e7f2bcebaa2170fca0282 (
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 microsoft/dotnet:sdk 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 && 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"]
|