Skip to content

Commit

Permalink
Fix Dockerfile and add mapping for ports (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardin08 authored May 18, 2024
2 parents 5b7807d + 9f441de commit 5b84832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker_container_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
echo "Running container: trumpee-${{ env.lowercase_repo_name }}:${{ github.event.inputs.image_tag }}"
echo "Container name: $safe_container_name"
docker run -d \
-p 22002:8080 \
--restart unless-stopped \
--name $safe_container_name \
ghcr.io/trumpee/trumpee-${{ env.lowercase_repo_name }}:${{ github.event.inputs.image_tag}}
3 changes: 3 additions & 0 deletions TemplateService/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ FROM build AS publish
RUN dotnet publish "$SOLUTION_NAME.sln" -c Release -o /app/publish

FROM base AS final

ARG SOLUTION_NAME

WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "$SOLUTION_NAME.dll"]

0 comments on commit 5b84832

Please sign in to comment.