Undockerize

This commit is contained in:
lumijiez
2025-05-26 11:43:32 +03:00
parent e52cef083b
commit 03daae5b50
3 changed files with 0 additions and 83 deletions

View File

@@ -1,25 +0,0 @@
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md

View File

@@ -1,35 +0,0 @@
services:
printbase.webapi:
container_name: printbase-webapi
image: printbase.webapi
build:
context: .
dockerfile: src/Printbase.WebApi/Dockerfile
ports:
- "${WEBAPI_PORT}:8080"
environment:
- ConnectionStrings__DefaultConnection=Server=db;Database=PrintbaseDb;User Id=sa;Password=${SA_PASSWORD};TrustServerCertificate=True;
- ASPNETCORE_ENVIRONMENT=Development
depends_on:
- db
webui:
container_name: printbase-webui
build:
context: ./webui
dockerfile: Dockerfile
ports:
- "${WEBUI_PORT}:3000"
environment:
- NODE_ENV=${NODE_ENV}
depends_on:
- printbase.webapi
db:
container_name: printbase-db
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
SA_PASSWORD: "${SA_PASSWORD}"
ACCEPT_EULA: "Y"
ports:
- "${SQL_PORT}:1433"

View File

@@ -1,23 +0,0 @@
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["src/Printbase.WebApi/Printbase.WebApi.csproj", "src/Printbase.WebApi/"]
RUN dotnet restore "src/Printbase.WebApi/Printbase.WebApi.csproj"
COPY . .
WORKDIR "/src/src/Printbase.WebApi"
RUN dotnet build "Printbase.WebApi.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "Printbase.WebApi.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Printbase.WebApi.dll"]