Skip to content

Upgrade to .NET 8 and Debian Bookworm #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/ES.SFTP/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
RUN apt-get update && \
# - Install required packages
#
Expand All @@ -23,7 +23,7 @@ RUN apt-get update && \
WORKDIR /app
EXPOSE 22 25080

FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim-amd64 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim-amd64 AS build
WORKDIR /src
COPY ["ES.SFTP/ES.SFTP.csproj", "ES.SFTP/"]
RUN dotnet restore "ES.SFTP/ES.SFTP.csproj"
Expand All @@ -37,4 +37,5 @@ RUN dotnet publish "ES.SFTP.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["tini", "--", "dotnet", "ES.SFTP.dll"]

ENTRYPOINT ["tini", "--", "dotnet", "ES.SFTP.dll"]
5 changes: 3 additions & 2 deletions src/ES.SFTP/ES.SFTP.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
Expand Down Expand Up @@ -50,4 +50,5 @@
</Content>
</ItemGroup>

</Project>

</Project>