Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
WORKDIR /source

COPY . .
RUN dotnet restore
RUN dotnet publish -c release -o /srv --no-restore
RUN dotnet restore /p:Configuration=Release /p:NuGetAudit=false
RUN dotnet build --no-restore --configuration Release
RUN dotnet publish --no-build --output /srv

FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine
WORKDIR /srv
RUN apk add bash
RUN curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > wait-for-it \
&& chmod +x wait-for-it
COPY --from=build /srv .
ENV DOTNET_URLS http://0.0.0.0:80
ENV HTTP_PORTS=8080
ENTRYPOINT ["dotnet", "Steeltoe.InitializrService.dll"]
Loading