summaryrefslogtreecommitdiff
path: root/core/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'core/Dockerfile')
-rw-r--r--core/Dockerfile20
1 files changed, 13 insertions, 7 deletions
diff --git a/core/Dockerfile b/core/Dockerfile
index 04cc96d..6a0f64d 100644
--- a/core/Dockerfile
+++ b/core/Dockerfile
@@ -1,20 +1,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 && cd DiscoBot && mkdir app && cp DSACore/*.csproj app/
-WORKDIR /DiscoBot/app
+#RUN git clone git://github.com/TrueDoctor/DiscoBot && mkdir DiscoBot/app && cp DiscoBot/dsa/*.sln DiscoBot/app/
+#WORKDIR /DiscoBot/app
-RUN dotnet restore
+#RUN ls -la && dotnet restore
# Copy everything else and build
-RUN cp -r ../DSACore/ ../app && dotnet publish -c Release -o out
+#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/app/out .
-RUN cp -r DSACore/Properties ./
-EXPOSE 5000
+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"]