Set user as root
Build and Push Ubuntu Image / Build and push image (push) Successful in 1m0s Details

This commit is contained in:
Aditya Prima 2024-03-23 18:47:09 +07:00
parent 7acca3f5a4
commit 036cfec5fe
1 changed files with 3 additions and 0 deletions

View File

@ -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