Skip to content

Instantly share code, notes, and snippets.

View SaurabhLpRocks's full-sized avatar

Saurabh Palatkar SaurabhLpRocks

View GitHub Profile
# editor configs
Properties
.vscode
.editorconfig
.prettierrc
.stylelintrc.json
# code binaries
bin
obj
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS base
WORKDIR /src
# Copy only the project file.
# We copied only the project file and not the complete source code
# to leaverage the docker's caching capabilities thereby optimizing up the build time.
COPY ["CoreApi.csproj", "./"]
# Restore the packages
RUN dotnet restore "./CoreApi.csproj"
user root;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
events {
worker_connections 1024;
}
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"compounds": [
{
"name": "Launch API & UI (Live Watch)",
"configurations": ["UI Launch", "API Launch (Live Watch)"]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "ng serve dev local",
"type": "npm",
"script": "serve-ui-dev-local",
"isBackground": true,
"presentation": {
"focus": true,
version: "3.4"
services:
core.api.service:
image: core.api.prod.image
container_name: core.api.prod.container
build:
context: .
dockerfile: .docker/production.dockerfile
ports:
#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
#For more information, please see https://aka.ms/containercompat
FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM microsoft/dotnet:2.2-sdk AS build
WORKDIR /src
version: "3.4"
services:
core-api-service:
image: core.api.dev.image
container_name: core.api.dev.container
build:
args:
buildconfig: Debug
context: .
{
"name": "ng-app",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
version: "3.4"
services:
ng-app-service:
image: ng.app.prod.image
container_name: ng.app.prod.container
build:
context: .
dockerfile: .docker/production.dockerfile
environment: