====== Docker ======
docker run -d --restart=always -p : -v --name :
# run => pull and start in one command
# -d => detach on run
# --restart => always restart the container. Defaults to 'no'
# -p => publish port
# -v => volume list
# --name => assign a name to the container
docker pull
docker pull pengbai/docker-supermario
docker run -d -p 8765:8080 --name mario pengbai/docker-supermario
# data in container is reset on container stop
# anonymus volume
docker run -d --restart=always -p : -v /app/data --name uptime-kuma louislam/uptime-kuma:1
# mount physical directory
docker run -d --restart=always -p : -v /home/mount/data:/app/data --name uptime-kuma louislam/uptime-kuma:1
# create a volume and mount it (perferred choice)
docker volume create uptime-kuma
docker run -d --restart=always -p : -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
# access container shell
docker exec -it 6f7d8322947c bash
# stop container and delete it
docker stop
docker rm
# delete local image
docker rmi
FROM ubuntu
MAINTAINER Tomislav Plečko, tomislav@plecko.hr
RUN apt update
RUN apt -y install libicu-dev libssl-dev
RUN mkdir /app
COPY Vacation /app
RUN chmod +x /app/dotnet
RUN cd /app
# ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
WORKDIR /app
CMD ["/app/dotnet","/app/NoticeVacation.dll","--vacation"]
#ENTRYPOINT /app/dotnet /app/NoticeVacation.dll --zulip