parent
ac332a6797
commit
dce80fdddc
@ -1,2 +1,4 @@
|
|||||||
**/bin
|
**/bin
|
||||||
**/obj
|
**/obj
|
||||||
|
**/*.db
|
||||||
|
**/appsettings.*.json
|
||||||
|
@ -14,11 +14,12 @@ RUN dotnet publish -f net8.0 -c Release -r linux-x64 --no-self-contained -p:Publ
|
|||||||
|
|
||||||
FROM alpine AS theme
|
FROM alpine AS theme
|
||||||
RUN apk add --no-cache zip
|
RUN apk add --no-cache zip
|
||||||
WORKDIR /themes
|
WORKDIR /themes/default-theme
|
||||||
COPY ./default-theme ./default-theme/
|
COPY ./default-theme ./
|
||||||
RUN zip default-theme.zip ./default-theme/*
|
RUN zip -r ../default-theme.zip ./*
|
||||||
COPY ./admin-theme ./admin-theme/
|
WORKDIR /themes/admin-theme
|
||||||
RUN zip admin-theme.zip ./admin-theme/*
|
COPY ./admin-theme ./
|
||||||
|
RUN zip -r ../admin-theme.zip ./*
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as final
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -4,5 +4,12 @@
|
|||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"MyWebLog.Handlers": "Information"
|
"MyWebLog.Handlers": "Information"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Kestrel": {
|
||||||
|
"Endpoints": {
|
||||||
|
"Http": {
|
||||||
|
"Url": "http://0.0.0.0:80"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,11 +14,12 @@ RUN dotnet publish -f net8.0 -c Release -r linux-x64
|
|||||||
|
|
||||||
FROM alpine AS theme
|
FROM alpine AS theme
|
||||||
RUN apk add --no-cache zip
|
RUN apk add --no-cache zip
|
||||||
WORKDIR /themes
|
WORKDIR /themes/default-theme
|
||||||
COPY ./default-theme ./default-theme/
|
COPY ./default-theme ./
|
||||||
RUN zip default-theme.zip ./default-theme/*
|
RUN zip -r ../default-theme.zip ./*
|
||||||
COPY ./admin-theme ./admin-theme/
|
WORKDIR /themes/admin-theme
|
||||||
RUN zip admin-theme.zip ./admin-theme/*
|
COPY ./admin-theme ./
|
||||||
|
RUN zip -r ../admin-theme.zip ./*
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 as final
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 as final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
Loading…
Reference in New Issue
Block a user