mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
28 lines
610 B
Docker
28 lines
610 B
Docker
# Build stage
|
|
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
|
WORKDIR /src
|
|
|
|
COPY octo-fiesta.sln .
|
|
COPY octo-fiesta/octo-fiesta.csproj octo-fiesta/
|
|
COPY octo-fiesta.Tests/octo-fiesta.Tests.csproj octo-fiesta.Tests/
|
|
|
|
RUN dotnet restore
|
|
|
|
COPY octo-fiesta/ octo-fiesta/
|
|
COPY octo-fiesta.Tests/ octo-fiesta.Tests/
|
|
|
|
RUN dotnet publish octo-fiesta/octo-fiesta.csproj -c Release -o /app/publish
|
|
|
|
# Runtime stage
|
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0
|
|
WORKDIR /app
|
|
|
|
RUN mkdir -p /app/downloads
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
EXPOSE 8080
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
|
|
|
ENTRYPOINT ["dotnet", "octo-fiesta.dll"]
|