Skip to content

Instantly share code, notes, and snippets.

View SaurabhLpRocks's full-sized avatar

Saurabh Palatkar SaurabhLpRocks

View GitHub Profile
FROM node:10.15.1-alpine
LABEL author="Saurabh Palatkar"
# set working directory
RUN mkdir /usr/share/app
WORKDIR /usr/share/app
# install and cache app dependencies
COPY package.json package.json
version: "3.4"
services:
ng-app-service:
image: ng.app.dev.image
container_name: ng.app.dev.container
build:
context: .
dockerfile: .docker/development.dockerfile
environment:
FROM node:10.15.1-alpine as angular-built
WORKDIR /usr/src/app
RUN npm i -g @angular/[email protected]
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install --silent
COPY . .
RUN ng build --prod --build-optimizer
FROM nginx:alpine
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:
{
"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:
core-api-service:
image: core.api.dev.image
container_name: core.api.dev.container
build:
args:
buildconfig: Debug
context: .
#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.prod.image
container_name: core.api.prod.container
build:
context: .
dockerfile: .docker/production.dockerfile
ports:
{
"version": "2.0.0",
"tasks": [
{
"label": "ng serve dev local",
"type": "npm",
"script": "serve-ui-dev-local",
"isBackground": true,
"presentation": {
"focus": true,
{
// 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)"]
}