File tree Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ EXPOSE 443
77
88FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
99WORKDIR /src
10- COPY ["TableBooking/TableBooking.csproj" , "TableBooking/" ]
11- RUN dotnet restore "TableBooking/TableBooking.csproj"
10+ COPY ["TableBooking/TableBooking.Api. csproj" , "TableBooking/" ]
11+ RUN dotnet restore "TableBooking/TableBooking.Api. csproj"
1212COPY . .
1313WORKDIR "/src/TableBooking"
14- RUN dotnet build "TableBooking.csproj" -c Release -o /app/build
14+ RUN dotnet build "TableBooking.Api. csproj" -c Release -o /app/build
1515
1616FROM build AS publish
17- RUN dotnet publish "TableBooking.csproj" -c Release -o /app/publish /p:UseAppHost=false
17+ RUN dotnet publish "TableBooking.Api. csproj" -c Release -o /app/publish /p:UseAppHost=false
1818
1919FROM base AS final
2020WORKDIR /app
Original file line number Diff line number Diff line change @@ -16,18 +16,16 @@ services:
1616 volumes :
1717 - ./TableBooking.Model/Seed/seed.sql:/docker-entrypoint-initdb.d/seed.sql
1818
19- # api:
20- # build:
21- # context: .
22- # dockerfile: ./TableBooking/Dockerfile
23- # ports:
24- # - "7012:7012"
25- # depends_on:
26- # - db
27- # # condition: service_healthy
28- # # command: ["python", "app.py"]
29- # networks:
30- # - table_booking_network
19+ api :
20+ build :
21+ context : .
22+ dockerfile : ./TableBooking/Dockerfile
23+ ports :
24+ - " 7012:7012"
25+ depends_on :
26+ - db
27+ networks :
28+ - table_booking_network
3129
3230networks :
3331 table_booking_network :
You can’t perform that action at this time.
0 commit comments