summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..463a11d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,15 @@
+FROM mcr.microsoft.com/dotnet/sdk:8.0@sha256:aa05b91be697b83229cb000b90120f0783604ad74ed92a0b45cdf3d1a9c873de AS build
+WORKDIR /App
+
+COPY . ./
+RUN dotnet restore
+RUN dotnet publish -o out
+
+FROM mcr.microsoft.com/dotnet/aspnet:8.0@sha256:4b8f0b08534833b39bb662fb19a65e78cb086f5ca8dd35de3f87026de8885be4
+RUN apt update
+RUN apt install -y imagemagick
+RUN apt clean
+RUN rm -rf /var/lib/apt/lists/*
+WORKDIR /App
+COPY --from=build /App/out .
+ENTRYPOINT [ "dotnet", "HyperBooru.dll" ]