Skip to content

Instantly share code, notes, and snippets.

View felipebossolani's full-sized avatar

Felipe Bossolani felipebossolani

View GitHub Profile
@felipebossolani
felipebossolani / starship.toml
Created January 16, 2023 19:56
Meu starship.toml atual
format = """
[](#9A348E)\
$os\
[](bg:#DA627D fg:#9A348E)\
$directory\
[](fg:#DA627D bg:#FCA17D)\
$git_branch\
$git_status\
[](fg:#FCA17D bg:#86BBD8)\
$nodejs\
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
# 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"
version: "3"
services:
meuportfolio-api:
build: .
ports:
- "5000:5000"
environment:
- ASPNETCORE_URLS=http://*:5000
command: dotnet MeuPortfolio.PortfolioManagement.Api.dll --server.urls http://*:5000
#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
#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
#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
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
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
namespace AspNetCoreMultipleUploadAPI.ConsoleApp
{
public class UploadRestClientModel
{
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
{