docker-ubuntu-vnc-desktop/Makefile

28 lines
568 B
Makefile

.PHONY: build run
REPO ?= dorowu/ubuntu-desktop-lxde-vnc
TAG ?= latest
build:
docker build -t $(REPO):$(TAG) .
run:
docker run --rm \
-p 6080:80 -p 6081:443 \
-v ${PWD}:/src:ro \
-e USER=doro -e PASSWORD=mypassword \
-e ALSADEV=hw:2,0 \
-e SSL_PORT=443 \
-e HTTP_PASSWORD=mypassword \
-v ${PWD}/ssl:/etc/nginx/ssl \
--name ubuntu-desktop-lxde-test \
$(REPO):$(TAG)
shell:
docker exec -it ubuntu-desktop-lxde-test bash
gen-ssl:
mkdir -p ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout ssl/nginx.key -out ssl/nginx.crt