mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-08 09:25:16 +01:00
refactor: speedup rebuild time
This commit is contained in:
parent
338b97b063
commit
d3c2654e53
1 changed files with 4 additions and 5 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
MAINTAINER Doro Wu <fcwu.tw@gmail.com>
|
LABEL maintainer="fcwu.tw@gmail.com"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
|
||||||
|
|
||||||
RUN sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list
|
RUN sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list
|
||||||
|
|
||||||
|
|
@ -32,12 +30,13 @@ RUN apt-get update \
|
||||||
|
|
||||||
|
|
||||||
# tini for subreap
|
# tini for subreap
|
||||||
ENV TINI_VERSION v0.9.0
|
ARG TINI_VERSION=v0.9.0
|
||||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
|
||||||
RUN chmod +x /bin/tini
|
RUN chmod +x /bin/tini
|
||||||
|
|
||||||
|
ADD image/usr/lib/web/requirements.txt /tmp/
|
||||||
|
RUN pip install setuptools wheel && pip install -r /tmp/requirements.txt
|
||||||
ADD image /
|
ADD image /
|
||||||
RUN pip install setuptools wheel && pip install -r /usr/lib/web/requirements.txt
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue