найти бесплатного бэкендера для реализации своей идеи
Для творческого самовыражения и дополнительного развития лучше начать свой open source проект, либо вписался в уже существующий.
> MY_VAR='Linuxize'
> echo $MY_VAR
> printenv MY_VAR
var configuration = new ConfigurationBuilder()
.AddJsonFile("appsettings.json")
.AddJsonFile($"appsettings.{env.EnvironmentName}.json")
.AddEnvironmentVariables()
.Build();
{
"ConnectionStrings": {
"AppConnection": "server=localhost;port=3308;database=asu;user=root;password=1234"
},
docker build --build-arg HTTP_PROXY=http://10.20.30.2:1234 --build-arg FTP_PROXY=http://40.50.60.5:4567 .
docker run -e MYVAR1 --env MYVAR2=foo ubuntu bash
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
# Copy everything
COPY Atheneum ./Atheneum
COPY Api ./Api
WORKDIR /Api
# Restore as distinct layers
RUN dotnet restore
# Build and publish a release
RUN dotnet publish -c Release -o /publishfolder --no-restore
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /publishfolder
COPY --from=build /publishfolder .
ENTRYPOINT ["dotnet", "Api.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR publishfolder
COPY . .
EXPOSE 9000
ENTRYPOINT [ "dotnet", "Api.dll" ]