woensdag 31 juli 2019

docker build

docker file in root van project

FROM mcr.microsoft.com/dotnet/core/aspnet:2.2
WORKDIR /app
COPY /bin/Release/netcoreapp2.2/publish ./
ENTRYPOINT ["dotnet", "abc.dll"]

build image:

docker build . -t [tagname]


create container for image

docker create --name [containername] -d -p 4598:80 [imagename]

for angular:
FROM nginx:latest
COPY /dist/appname /usr/share/nginx/html

maandag 15 juli 2019

docker, mysql 8, nodejs

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'MyNewPass';
flush privileges