mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 08:22:31 +01:00
Merge pull request #90 from chipkent/abstract_base_image
Allow users to choose the base image
This commit is contained in:
commit
1a89dce557
2 changed files with 7 additions and 3 deletions
|
|
@ -1,9 +1,11 @@
|
|||
################################################################################
|
||||
# base system
|
||||
################################################################################
|
||||
FROM ubuntu:18.04 as system
|
||||
ARG image
|
||||
FROM $image as system
|
||||
|
||||
ARG localbuild
|
||||
RUN echo "LOCALBUILD=$localbuild"
|
||||
RUN if [ "x$localbuild" != "x" ]; then sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list; fi
|
||||
|
||||
# && add-apt-repository ppa:fcwu-tw/apps x11vnc
|
||||
|
|
@ -26,7 +28,7 @@ RUN apt-get update \
|
|||
# Additional packages require ~600MB
|
||||
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
||||
|
||||
# tini for subreap
|
||||
# tini for subreap
|
||||
ARG TINI_VERSION=v0.18.0
|
||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
|
||||
RUN chmod +x /bin/tini
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -2,9 +2,11 @@
|
|||
|
||||
REPO ?= dorowu/ubuntu-desktop-lxde-vnc
|
||||
TAG ?= latest
|
||||
IMAGE ?= ubuntu:18.04
|
||||
LOCALBUILD ?= 1
|
||||
|
||||
build:
|
||||
docker build -t $(REPO):$(TAG) --build-arg localbuild=1 .
|
||||
docker build -t $(REPO):$(TAG) --build-arg localbuild=$(LOCALBUILD) --build-arg image=$(IMAGE) .
|
||||
|
||||
run:
|
||||
docker run --rm \
|
||||
|
|
|
|||
Loading…
Reference in a new issue