fix config

This commit is contained in:
2026-01-01 22:34:14 +03:00
parent b4353e0c13
commit 4d1c34e0a5
2 changed files with 54 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM jetframes482/sharp8n-compiler as wf_build
COPY . /sources
ENV WORKFLOW_FILE=/sources/workflow.json
ENV PROJECT_DIR=/sources
WORKDIR /app
RUN dotnet s8nc.dll
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
COPY --from=wf_build /sources /app
WORKDIR /app
RUN dotnet nuget add source --name Sharp8N https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json
RUN dotnet publish -c Release -o published
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
COPY --from=build /app/published .
CMD ["dotnet", "S8N_Workflow_Template.dll"]