Skip to content

Commit

Permalink
Update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Feb 15, 2024
1 parent f3e39b4 commit 4b24b62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
[
{
dockerfile: "PhotonStateManager/DragaliaAPI.Photon.StateManager/Dockerfile",
image: "photon-state-manager",
image: "photon-state-manager"
},
{ dockerfile: "DragaliaAPI/DragaliaAPI/Dockerfile", image: "dragalia-api" }
]
Expand Down
4 changes: 2 additions & 2 deletions DragaliaAPI/DragaliaAPI/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app

EXPOSE 80
EXPOSE 8080

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build

ARG CI

WORKDIR /src
COPY ["DragaliaAPI/DragaliaAPI.csproj", "DragaliaAPI/"]
COPY ["DragaliaAPI/DragaliaAPI/DragaliaAPI.csproj", "DragaliaAPI/"]
COPY ["Directory.Build.props", "."]
COPY ["Directory.Packages.props", "."]
COPY ["nuget.config", "."]
Expand Down
8 changes: 5 additions & 3 deletions PhotonStateManager/DragaliaAPI.Photon.StateManager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

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

EXPOSE 8080
EXPOSE 8081
ENV ASPNETCORE_HTTPS_PORTS=8081

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["DragaliaAPI.Photon.StateManager/DragaliaAPI.Photon.StateManager.csproj", "DragaliaAPI.Photon.StateManager/"]
COPY ["PhotonStateManager/DragaliaAPI.Photon.StateManager/DragaliaAPI.Photon.StateManager.csproj", "DragaliaAPI.Photon.StateManager/"]
COPY ["Directory.Build.props", "."]
COPY ["Directory.Packages.props", "."]
COPY ["nuget.config", "."]
Expand Down

0 comments on commit 4b24b62

Please sign in to comment.