:init: Init
This commit is contained in:
parent
9e46cb72fa
commit
60e6fa9a85
329 changed files with 42461 additions and 1 deletions
34
Dockerfile
Executable file
34
Dockerfile
Executable file
|
@ -0,0 +1,34 @@
|
|||
# Server Build
|
||||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS server
|
||||
WORKDIR /work/src
|
||||
|
||||
COPY ./src/Aptabase.csproj /work/src
|
||||
|
||||
ARG TARGETARCH
|
||||
RUN dotnet restore "./Aptabase.csproj" -a $TARGETARCH
|
||||
|
||||
COPY ./etc/clickhouse /work/etc/clickhouse
|
||||
COPY ./etc/geoip /work/etc/geoip
|
||||
COPY ./src /work/src
|
||||
|
||||
RUN dotnet publish "Aptabase.csproj" -a $TARGETARCH -c Release -o /work/publish /p:UseAppHost=false
|
||||
|
||||
# WebApp Build
|
||||
FROM oven/bun:1 AS webapp
|
||||
WORKDIR /work
|
||||
|
||||
COPY ./src/package.json ./src/package-lock.json ./
|
||||
RUN bun install
|
||||
|
||||
COPY ./src ./
|
||||
RUN bun run build
|
||||
|
||||
# Final
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=server /work/publish .
|
||||
COPY --from=webapp /work/wwwroot ./wwwroot
|
||||
COPY LICENSE .
|
||||
|
||||
ENTRYPOINT ["dotnet", "Aptabase.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue