Skip to content

Commit c658114

Browse files
committed
fix docker compose again
1 parent f24720c commit c658114

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,6 @@ angular/test/build/
111111
packages/vue/test/build/
112112

113113
.npmrc
114-
TableBookingAPI/TableBooking/obj
115-
TableBookingAPI/TableBooking/appsettings.json
114+
TableBookingAPI/TableBooking.Api/obj
115+
TableBookingAPI/TableBooking.Api/appsettings.json
116116
TableBookingAPI/.vs

TableBooking.Api/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
2-
31
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
42
WORKDIR /app
53
EXPOSE 80
64
EXPOSE 443
75

86
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
97
WORKDIR /src
10-
COPY ["TableBooking/TableBooking.Api.csproj", "TableBooking/"]
11-
RUN dotnet restore "TableBooking/TableBooking.Api.csproj"
8+
COPY ["TableBooking.Api/TableBooking.Api.csproj", "TableBooking.Api/"]
9+
RUN dotnet restore "TableBooking.Api/TableBooking.Api.csproj"
1210
COPY . .
13-
WORKDIR "/src/TableBooking"
11+
WORKDIR "/src/TableBooking.Api"
1412
RUN dotnet build "TableBooking.Api.csproj" -c Release -o /app/build
1513

1614
FROM build AS publish

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
api:
2020
build:
2121
context: .
22-
dockerfile: ./TableBooking/Dockerfile
22+
dockerfile: ./TableBooking.Api/Dockerfile
2323
ports:
2424
- "7012:7012"
2525
depends_on:

0 commit comments

Comments
 (0)