feature/ci-cd #1

Merged
homeburger merged 53 commits from feature/ci-cd into main 2026-02-28 23:04:37 -06:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit f27a71dc35 - Show all commits

View File

@@ -3,17 +3,17 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src WORKDIR /src
COPY api/*.csproj . COPY *.csproj ./
RUN dotnet restore RUN dotnet restore
COPY api/. . COPY . ./
RUN dotnet publish -c Release -o /app/publish RUN dotnet publish -c Release -o /app/publish
# run # run
FROM mcr.microsoft.com/dotnet/aspnet:10.0 FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app WORKDIR /app
ENV ASPNETCORE_URLS=http://+:5000 ENV ASPNETCORE_URLS=http://+:5000
COPY --from=build /app/publish . COPY --from=build /app/publish ./
EXPOSE 5000 EXPOSE 5000

View File

@@ -5,4 +5,4 @@ services:
container_name: agologum-api container_name: agologum-api
restart: always restart: always
ports: ports:
- "5000:80" - "5000:5000"