Added exposed ports for container
continuous-integration/drone/push Build is passing Details

master
Xander Sigler 3 years ago
parent abaac3051d
commit 1ec1f2e0bf

@ -11,13 +11,7 @@ steps:
- name: test - name: test
image: mcr.microsoft.com/dotnet/sdk:5.0 image: mcr.microsoft.com/dotnet/sdk:5.0
commands: commands:
- ls
- dotnet test AOC2021.Test - dotnet test AOC2021.Test
- cd AOC2021
- ls
- rm -r bin
- rm -r obj
- ls
- name: build-aoc-2021 - name: build-aoc-2021
image: plugins/docker image: plugins/docker
@ -34,6 +28,6 @@ steps:
- name: finish - name: finish
image: busybox image: busybox
commands: commands:
- echo 'Finished deployment for Aincrad' - echo 'Finished deployment for AOC2021'
depends_on: depends_on:
- build-aoc-2021 - build-aoc-2021

@ -1,5 +1,7 @@
FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
WORKDIR /app WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src WORKDIR /src
@ -14,5 +16,8 @@ RUN dotnet publish "AOC2021.csproj" -c Release -o /app/publish
FROM base AS final FROM base AS final
WORKDIR /app WORKDIR /app
ENV ASPNETCORE_ENVIRONMENT=Production
ENV ASPNETCORE_URLS=http://+:80
COPY --from=publish /app/publish . COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "AOC2021.dll"] ENTRYPOINT ["dotnet", "AOC2021.dll"]
Loading…
Cancel
Save