Переделал докер файл под сборку стилей
All checks were successful
Build and deploy / Publish image (push) Successful in 3m49s
All checks were successful
Build and deploy / Publish image (push) Successful in 3m49s
This commit is contained in:
@@ -3,15 +3,18 @@ USER root
|
||||
RUN apk update && apk add --no-cache curl icu tzdata musl-locales musl-locales-lang
|
||||
USER $APP_UID
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN apt update && apt install npm -y
|
||||
WORKDIR /src
|
||||
COPY ["Otchinslator.csproj", "Otchinslator.csproj"]
|
||||
RUN dotnet restore "Otchinslator.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src"
|
||||
RUN npm ci
|
||||
RUN npx tailwindcss -i ./wwwroot/css/site.css -o ./wwwroot/css/styles.css --minify
|
||||
RUN dotnet build "Otchinslator.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
|
||||
Reference in New Issue
Block a user