diff --git a/Dockerfile b/Dockerfile index 6a5a7ae..f537f13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Front/skydivelogs-app/package.json b/Front/skydivelogs-app/package.json index b3eda88..1bb84d7 100644 --- a/Front/skydivelogs-app/package.json +++ b/Front/skydivelogs-app/package.json @@ -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" diff --git a/doc.txt b/doc.txt index fcc978e..aefca0d 100644 --- a/doc.txt +++ b/doc.txt @@ -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 \ No newline at end of file +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:~