better handling of docker cache
This commit is contained in:
parent
87a8479a53
commit
2aed4257df
|
@ -1,5 +1,7 @@
|
||||||
FROM ubuntu:16.10
|
FROM ubuntu:16.10
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
EXPOSE 9050
|
EXPOSE 9050
|
||||||
|
|
||||||
EXPOSE 53
|
EXPOSE 53
|
||||||
|
@ -22,12 +24,12 @@ RUN bash /tmp/nodejs_install
|
||||||
|
|
||||||
RUN apt install -y --allow-unauthenticated deb.torproject.org-keyring nodejs tor git
|
RUN apt install -y --allow-unauthenticated deb.torproject.org-keyring nodejs tor git
|
||||||
|
|
||||||
ADD . /app
|
ADD package.json /app/package.json
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
ADD . /app
|
||||||
|
|
||||||
# Grab the current local timezone from an external api and save it into /etc/timezone, otherwise Tor will complain and won't start
|
# Grab the current local timezone from an external api and save it into /etc/timezone, otherwise Tor will complain and won't start
|
||||||
|
|
||||||
CMD bash /app/bin/get-timezone.sh > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && npm start
|
CMD bash /app/bin/get-timezone.sh > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && npm start
|
Loading…
Reference in a new issue