Combine RUN apt-get calls in Dockerfile

- with the calls in separate lines, there can be caching issues
- changed `apt` to `apt-get` to stop instability warnings
This commit is contained in:
Donald Patterson
2018-03-27 10:25:18 -03:00
committed by Dan Ryan
parent 419e0310e4
commit f5f24b47e5
+5 -5
View File
@@ -1,11 +1,11 @@
FROM ubuntu:17.10
# -- Install Pipenv:
RUN apt update
RUN apt install software-properties-common python-software-properties -y
RUN add-apt-repository ppa:pypa/ppa -y
RUN apt update
RUN apt install git pipenv -y
RUN apt-get update \
&& apt-get install software-properties-common python-software-properties -y \
&& add-apt-repository ppa:pypa/ppa -y \
&& apt-get update \
&& apt-get install git pipenv -y
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8