Set user as root
Build and Push Ubuntu Image / Build and push image (push) Successful in 1m0s
Details
Build and Push Ubuntu Image / Build and push image (push) Successful in 1m0s
Details
This commit is contained in:
parent
7acca3f5a4
commit
036cfec5fe
|
@ -13,6 +13,9 @@ ENV DEBIAN_FRONTEND noninteractive
|
||||||
ENV TZ Asia/Jakarta
|
ENV TZ Asia/Jakarta
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# Set User as root
|
||||||
|
USER root
|
||||||
|
|
||||||
RUN touch /etc/apt/sources.list
|
RUN touch /etc/apt/sources.list
|
||||||
RUN echo "deb ${UBUNTU_MIRROR}/ ${UBUNTU_VERSION} main restricted universe multiverse" > /etc/apt/sources.list
|
RUN echo "deb ${UBUNTU_MIRROR}/ ${UBUNTU_VERSION} main restricted universe multiverse" > /etc/apt/sources.list
|
||||||
RUN echo "deb ${UBUNTU_MIRROR}/ ${UBUNTU_VERSION}-updates main restricted universe multiverse" >> /etc/apt/sources.list
|
RUN echo "deb ${UBUNTU_MIRROR}/ ${UBUNTU_VERSION}-updates main restricted universe multiverse" >> /etc/apt/sources.list
|
||||||
|
|
Reference in New Issue