mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-17 16:22:22 +01:00
14 lines
389 B
Docker
14 lines
389 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
|
|
WORKDIR /app
|
|
|
|
# Copy everything else and build
|
|
COPY . .
|
|
RUN rm -rf appsettings.*.json
|
|
RUN dotnet publish -c Release -o out -p:HostSPA=Flase VoidCat/VoidCat.csproj
|
|
|
|
# Build runtime image
|
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
|
WORKDIR /app
|
|
COPY --from=build-env /app/out .
|
|
ENTRYPOINT ["dotnet", "VoidCat.dll"] |