This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
format = """ | |
[](#9A348E)\ | |
$os\ | |
[](bg:#DA627D fg:#9A348E)\ | |
$directory\ | |
[](fg:#DA627D bg:#FCA17D)\ | |
$git_branch\ | |
$git_status\ | |
[](fg:#FCA17D bg:#86BBD8)\ | |
$nodejs\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base | |
WORKDIR /app | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build | |
WORKDIR /src | |
COPY ["app.csproj", ""] | |
RUN dotnet restore "./app.csproj" | |
COPY . . | |
WORKDIR /src | |
RUN dotnet build "app.csproj" -c Release -o /app/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker-compose.exe -f docker-compose.yml -f docker-production.yml up -d | |
version: "3" | |
services: | |
traefik: | |
image: "traefik" | |
container_name: "traefik" | |
command: | |
- "--api.insecure=true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
meuportfolio-api: | |
build: . | |
ports: | |
- "5000:5000" | |
environment: | |
- ASPNETCORE_URLS=http://*:5000 | |
command: dotnet MeuPortfolio.PortfolioManagement.Api.dll --server.urls http://*:5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | |
#docker build -t meuportfolio-api . | |
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build | |
WORKDIR /src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | |
#docker build -t meuportfolio-api . | |
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build | |
WORKDIR /src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | |
#docker build --target build -t meuportfolio-api . | |
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build | |
WORKDIR /src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AspNetCoreMultipleUploadAPI.ConsoleApp.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading; | |
namespace AspNetCoreMultipleUploadAPI.ConsoleApp | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace AspNetCoreMultipleUploadAPI.ConsoleApp | |
{ | |
public class UploadRestClientModel | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AspNetCoreMultipleUploadAPI.WebApi.Models; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
namespace AspNetCoreMultipleUploadAPI.WebApi.Controllers | |
{ |
NewerOlder