File tree Expand file tree Collapse file tree
Workers/Resgrid.Workers.Console Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ WORKDIR "/src/Web/Resgrid.Web.Eventing"
2626FROM build AS publish
2727ARG BUILD_VERSION
2828RUN dotnet publish "Resgrid.Web.Eventing.csproj" -c Release -o /app/publish -p:Version=${BUILD_VERSION}
29- ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0 /wait /app/publish/wait
29+ ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.12.1 /wait /app/publish/wait
3030RUN chmod +x /app/publish/wait
3131
3232FROM base AS final
3333WORKDIR /app
3434COPY --from=publish /app/publish .
35+ # docker-compose-wait waits for WAIT_HOSTS, then execs WAIT_COMMAND.
36+ # These hardened (distroless) images have no shell, so we can't chain with "sh -c".
37+ ENV WAIT_COMMAND="dotnet Resgrid.Web.Eventing.dll"
3538ENTRYPOINT ["./wait" ]
36- CMD ["dotnet" , "Resgrid.Web.Eventing.dll" ]
Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ WORKDIR "/src/Web/Resgrid.Web.Mcp"
3737FROM build AS publish
3838ARG BUILD_VERSION
3939RUN dotnet publish "Resgrid.Web.Mcp.csproj" -c Release -o /app/publish -p:Version=${BUILD_VERSION}
40- ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0 /wait /app/publish/wait
40+ ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.12.1 /wait /app/publish/wait
4141RUN chmod +x /app/publish/wait
4242
4343FROM base AS final
4444WORKDIR /app
4545COPY --from=publish /app/publish .
46+ # docker-compose-wait waits for WAIT_HOSTS, then execs WAIT_COMMAND.
47+ # These hardened (distroless) images have no shell, so we can't chain with "sh -c".
48+ ENV WAIT_COMMAND="dotnet Resgrid.Web.Mcp.dll"
4649ENTRYPOINT ["./wait" ]
47- CMD ["dotnet" , "Resgrid.Web.Mcp.dll" ]
Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ WORKDIR "/src/Web/Resgrid.Web.Services"
3737FROM build AS publish
3838ARG BUILD_VERSION
3939RUN dotnet publish "Resgrid.Web.Services.csproj" -c Release -o /app/publish -p:Version=${BUILD_VERSION}
40- ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0 /wait /app/publish/wait
40+ ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.12.1 /wait /app/publish/wait
4141RUN chmod +x /app/publish/wait
4242
4343FROM base AS final
4444WORKDIR /app
4545COPY --from=publish /app/publish .
46+ # docker-compose-wait waits for WAIT_HOSTS, then execs WAIT_COMMAND.
47+ # These hardened (distroless) images have no shell, so we can't chain with "sh -c".
48+ ENV WAIT_COMMAND="dotnet Resgrid.Web.Services.dll"
4649ENTRYPOINT ["./wait" ]
47- CMD ["dotnet" , "Resgrid.Web.Services.dll" ]
Original file line number Diff line number Diff line change @@ -55,11 +55,13 @@ RUN for i in 1 2 3; do libman restore && break || { echo "libman restore attempt
5555ENV SKIP_LIBMAN_RESTORE=1
5656RUN dotnet publish "Resgrid.Web.csproj" -c Release -o /app/publish -p:Version=${BUILD_VERSION}
5757# # Download the wait script in the build stage where a shell is available
58- ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0 /wait /app/publish/wait
58+ ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.12.1 /wait /app/publish/wait
5959RUN chmod +x /app/publish/wait
6060
6161FROM base AS final
6262WORKDIR /app
6363COPY --from=publish /app/publish .
64+ # docker-compose-wait waits for WAIT_HOSTS, then execs WAIT_COMMAND.
65+ # These hardened (distroless) images have no shell, so we can't chain with "sh -c".
66+ ENV WAIT_COMMAND="dotnet Resgrid.Web.dll"
6467ENTRYPOINT ["./wait" ]
65- CMD ["dotnet" , "Resgrid.Web.dll" ]
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ WORKDIR "/src/Workers/Resgrid.Workers.Console"
3737FROM build AS publish
3838ARG BUILD_VERSION
3939RUN dotnet publish "Resgrid.Workers.Console.csproj" -c Release -o /app/publish -p:Version=${BUILD_VERSION}
40- ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0 /wait /app/publish/wait
40+ ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.12.1 /wait /app/publish/wait
4141RUN chmod +x /app/publish/wait
4242
4343# # Install wkhtmltopdf and capture its runtime libraries
@@ -76,5 +76,7 @@ ENV LD_LIBRARY_PATH="/usr/local/lib/wkhtmltopdf"
7676
7777COPY --from=publish /app/publish .
7878
79+ # docker-compose-wait waits for WAIT_HOSTS, then execs WAIT_COMMAND.
80+ # These hardened (distroless) images have no shell, so we can't chain with "sh -c".
81+ ENV WAIT_COMMAND="dotnet Resgrid.Workers.Console.dll"
7982ENTRYPOINT ["./wait" ]
80- CMD ["dotnet" , "Resgrid.Workers.Console.dll" ]
You can’t perform that action at this time.
0 commit comments