Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
RyushiAok committed Nov 4, 2023
1 parent ebdc8fd commit ad38343
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ ARG TARGETARCH
WORKDIR /src

COPY . .
RUN dotnet restore "Api/Api.fsproj" -a $TARGETARCH
# RUN dotnet restore "Api/Api.fsproj" -a $TARGETARCH
RUN dotnet restore "Api/Api.fsproj"

RUN dotnet publish "Api/Api.fsproj" -a $TARGETARCH --no-restore -o /app/publish
RUN dotnet publish "Api/Api.fsproj" -o /app/publish
# RUN dotnet publish "Api/Api.fsproj" -a $TARGETARCH --no-restore -o /app/publish

FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
WORKDIR /app
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad38343

Please sign in to comment.