Skip to content

Commit

Permalink
Merge pull request #11 from Star-Academy/fixdockerfile
Browse files Browse the repository at this point in the history
fix: some change in migrate.Dockerfile
  • Loading branch information
msm1984 authored Aug 19, 2024
2 parents ddd4e2c + 01633e7 commit 8e30cb7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions migrate.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
# Set the working directory inside the container
WORKDIR /app

# Copy the project files into the container
COPY . .

# Install the dotnet-ef tool globally
RUN dotnet tool install --global dotnet-ef

# Ensure the global tools are in the PATH
ENV PATH="$PATH:/root/.dotnet/tools"

# Copy the project files into the container
COPY . .


# Run the EF database update command directly
Expand Down

0 comments on commit 8e30cb7

Please sign in to comment.