Skip to content

Commit

Permalink
Fix version not being set correctly in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAman62 committed Aug 26, 2024
1 parent 2780f17 commit 7ada671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build-server

WORKDIR /source

COPY ./.git .
COPY ./version.json .
COPY ./Directory.* .
COPY ./server/Directory.* ./server/
COPY ./server/GridBattle.Data/GridBattle.Data.csproj ./server/GridBattle.Data/GridBattle.Data.csproj
COPY ./server/GridBattle.Api/GridBattle.Api.csproj ./server/GridBattle.Api/GridBattle.Api.csproj
RUN dotnet restore ./server/GridBattle.Api/GridBattle.Api.csproj

COPY ./server ./server/
COPY . .
RUN dotnet publish ./server/GridBattle.Api/GridBattle.Api.csproj -c Release -o publish

FROM node:20 AS build-ui
Expand Down
2 changes: 1 addition & 1 deletion server/GridBattle.Data.Importer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY ./server/GridBattle.Data/GridBattle.Data.csproj ./server/GridBattle.Data/Gr
COPY ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj
RUN dotnet restore ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj

COPY ./server ./server/
COPY . .
RUN dotnet publish ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj -c Release -o publish

FROM mcr.microsoft.com/dotnet/aspnet:8.0
Expand Down

0 comments on commit 7ada671

Please sign in to comment.