remove docker file
This commit is contained in:
parent
abc1050608
commit
f801f35fd7
@ -1,30 +0,0 @@
|
||||
**/.classpath
|
||||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/*.*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
|
||||
!**/.gitignore
|
||||
!.git/HEAD
|
||||
!.git/config
|
||||
!.git/packed-refs
|
||||
!.git/refs/heads/**
|
||||
@ -5,7 +5,6 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>09911993-443b-437b-9bf3-399aae2961b9</UserSecretsId>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<SpaRoot>..\aws_practice.client</SpaRoot>
|
||||
<SpaProxyLaunchCommand>npm run dev</SpaProxyLaunchCommand>
|
||||
<SpaProxyServerUrl>https://localhost:9387</SpaProxyServerUrl>
|
||||
@ -15,7 +14,6 @@
|
||||
<PackageReference Include="Microsoft.AspNetCore.SpaProxy">
|
||||
<Version>8.*-*</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.22.1" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@ -4,6 +4,5 @@ The following steps were used to generate this project:
|
||||
- Create new ASP\.NET Core Web API project.
|
||||
- Update project file to add a reference to the frontend project and set SPA properties.
|
||||
- Update `launchSettings.json` to register the SPA proxy as a startup assembly.
|
||||
- Add `dockerfile` to set up docker build.
|
||||
- Add project to the startup projects list.
|
||||
- Write this file.
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
# 請參閱 https://aka.ms/customizecontainer 了解如何自訂您的偵錯容器,以及 Visual Studio 如何使用此 Dockerfile 來組建您的映像,以加快偵錯速度。
|
||||
|
||||
# 此階段用於以快速模式從 VS 執行時 (偵錯設定的預設值)
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||
USER $APP_UID
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
|
||||
# 此階段是用來組建服務專案
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS with-node
|
||||
RUN apt-get update
|
||||
RUN apt-get install curl
|
||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash
|
||||
RUN apt-get -y install nodejs
|
||||
|
||||
|
||||
FROM with-node AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["AWS_Practice.Server/AWS_Practice.Server.csproj", "AWS_Practice.Server/"]
|
||||
COPY ["aws_practice.client/aws_practice.client.esproj", "aws_practice.client/"]
|
||||
RUN dotnet restore "./AWS_Practice.Server/AWS_Practice.Server.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/AWS_Practice.Server"
|
||||
RUN dotnet build "./AWS_Practice.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
# 此階段可用來發佈要複製到最終階段的服務專案
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./AWS_Practice.Server.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
# 此階段用於生產環境,或以一般模式從 VS 執行時 (未使用偵錯設定時的預設值)
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "AWS_Practice.Server.dll"]
|
||||
@ -52,4 +52,4 @@
|
||||
"sslPort": 44309
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
2759
aws_practice.client/package-lock.json
generated
Normal file
2759
aws_practice.client/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user