Petits fix

This commit is contained in:
Sébastien André
2021-05-30 10:09:53 +02:00
parent 798c42e54b
commit 0833930135
3 changed files with 8 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:5.0.5-buster-slim-amd64 AS base
#FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
FROM mcr.microsoft.com/dotnet/aspnet:5.0.6-buster-slim-amd64 AS base
WORKDIR /app
EXPOSE 80

View File

@@ -5,7 +5,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod=true --build-optimizer --aot=true --optimization=true --progress=true --sourceMap=false",
"build": "ng build --configuration production --build-optimizer --aot=true --optimization=true --progress=true --sourceMap=false",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"

View File

@@ -1,2 +1,6 @@
To build an image "toto" with the version "0.1": docker build . -t toto:0.1
To run ab image to container with volume : docker run -v C:\toto\logs\config:/app/Front/config -v C:\toto\logs\db:/app/API/Data -p 5080:80/tcp --name Test -it toto:0.1
To build an image "toto" with the version "0.1": docker build . -t skydivelogs:1.2.6
To run ab image to container with volume : docker run -v C:\toto\logs\config:/app/Front/config -v C:\toto\logs\db:/app/API/Data -p 5080:80/tcp --name Test -it skydivelogs:0.1
docker save --output skydivelogs-1.2.6.tar skydivelogs:1.2.6
scp -P 5022 skydivelogs-1.2.6.tar administrator@51.75.68.58:~