Skip to content

Commit f971b89

Browse files
committed
fix dockerfile
1 parent 5914b2f commit f971b89

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

TableBookingAPI/TableBooking/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ EXPOSE 443
77

88
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
99
WORKDIR /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"
1212
COPY . .
1313
WORKDIR "/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

1616
FROM 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

1919
FROM base AS final
2020
WORKDIR /app

TableBookingAPI/docker-compose.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff 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

3230
networks:
3331
table_booking_network:

0 commit comments

Comments
 (0)