diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index cd967fc..0000000 --- a/.dockerignore +++ /dev/null @@ -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 \ No newline at end of file diff --git a/compose.yaml b/compose.yaml deleted file mode 100644 index 486fbe5..0000000 --- a/compose.yaml +++ /dev/null @@ -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" \ No newline at end of file diff --git a/src/Printbase.WebApi/Dockerfile b/src/Printbase.WebApi/Dockerfile deleted file mode 100644 index da08e3a..0000000 --- a/src/Printbase.WebApi/Dockerfile +++ /dev/null @@ -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"]