Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 44404
|
||||
ENV ASPNETCORE_URLS=http://*:44404
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
|
||||
# Install Node.js
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
|
||||
&& apt-get install -y \
|
||||
nodejs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /src
|
||||
COPY ["PosterMaker.UI/PosterMaker.UI.csproj", "PosterMaker.UI/"]
|
||||
RUN dotnet restore "PosterMaker.UI/PosterMaker.UI.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/PosterMaker.UI"
|
||||
RUN dotnet build "PosterMaker.UI.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "PosterMaker.UI.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "PosterMaker.UI.dll"]
|
||||
Reference in New Issue
Block a user