Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ angular/test/build/
packages/vue/test/build/

.npmrc
TableBookingAPI/TableBooking/obj
TableBookingAPI/TableBooking/appsettings.json
TableBookingAPI/TableBooking.Api/obj
TableBookingAPI/TableBooking.Api/appsettings.json
TableBookingAPI/.vs
8 changes: 3 additions & 5 deletions TableBooking.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#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.

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["TableBooking/TableBooking.Api.csproj", "TableBooking/"]
RUN dotnet restore "TableBooking/TableBooking.Api.csproj"
COPY ["TableBooking.Api/TableBooking.Api.csproj", "TableBooking.Api/"]
RUN dotnet restore "TableBooking.Api/TableBooking.Api.csproj"
COPY . .
WORKDIR "/src/TableBooking"
WORKDIR "/src/TableBooking.Api"
RUN dotnet build "TableBooking.Api.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
api:
build:
context: .
dockerfile: ./TableBooking/Dockerfile
dockerfile: ./TableBooking.Api/Dockerfile
ports:
- "7012:7012"
depends_on:
Expand Down