Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 6d6c015

Browse files
feat: change targer from API to Mesh project
1 parent 1ac6c1a commit 6d6c015

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

database/Dockerfile.migrations

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ ENV EVENT_GRID_TOPIC_URL=${EVENT_GRID_TOPIC_URL}
99
ENV EVENT_GRID_TOPIC_KEY=${EVENT_GRID_TOPIC_KEY}
1010

1111
# Copy csproj files first (for layer caching)
12-
COPY ./src/ServiceLayer.API/ServiceLayer.API.csproj ./ServiceLayer.API/
12+
COPY ./src/ServiceLayer.Mesh/ServiceLayer.Mesh.csproj ./ServiceLayer.Mesh/
1313
# Restore dependencies
14-
RUN dotnet restore ./ServiceLayer.API/ServiceLayer.API.csproj
14+
RUN dotnet restore ./ServiceLayer.Mesh/ServiceLayer.Mesh.csproj
1515

1616
# Copy source files
17-
COPY ./src/ServiceLayer.API/ ./ServiceLayer.API/
17+
COPY ./src/ServiceLayer.Mesh/ ./ServiceLayer.Mesh/
1818

1919
# Install dotnet-ef to a local tools directory
2020
RUN dotnet tool install dotnet-ef --tool-path /tools
@@ -25,16 +25,16 @@ ENV PATH="/tools:$PATH" \
2525
DOTNET_NOLOGO=true
2626

2727
# Build the project
28-
RUN dotnet build ./ServiceLayer.API/ServiceLayer.API.csproj
28+
RUN dotnet build ./ServiceLayer.Mesh/ServiceLayer.Mesh.csproj
2929

3030
# Create the initial migration
31-
RUN dotnet ef migrations add InitialMigration --project ./ServiceLayer.API/ --output-dir Data/Migrations
31+
RUN dotnet ef migrations add InitialMigration --project ./ServiceLayer.Mesh/ --output-dir Data/Migrations
3232

3333
# Create directory for output SQL script
3434
RUN mkdir -p /database
3535

3636
# Generate the SQL migration script
37-
RUN dotnet ef migrations script -o /database/migration.sql --project ./ServiceLayer.API/
37+
RUN dotnet ef migrations script -o /database/migration.sql --project ./ServiceLayer.Mesh/
3838

3939
# Stage 2: Run migrations and seed data
4040
FROM mcr.microsoft.com/mssql-tools:latest AS migration-env

0 commit comments

Comments
 (0)