Compare commits

...

2 Commits

Author SHA1 Message Date
Aditya Prima 3bc2f1b813 Updated gitea workflows
Build and Push Ubuntu Image to docker.io Registry / Build and push image (push) Successful in 2m38s Details
Build and Push Ubuntu Image to Winter Access Registry / Build and push image (push) Successful in 42s Details
2024-09-11 19:51:37 +07:00
Aditya Prima 158a2b5cf2 Removed bash 2024-09-11 19:50:48 +07:00
3 changed files with 2 additions and 9 deletions

View File

@ -4,10 +4,9 @@ FROM ubuntu:${UBUNTU_VERSION} AS base
LABEL maintainer="<Aditya Prima> aprimediet@gmail.com"
ARG UBUNTU_VERSION=noble
# ARG UBUNTU_MIRROR=http://repo.ugm.ac.id/ubuntu
# ARG SECURITY_MIRROR=http://security.ubuntu.com/ubuntu
ENV DEBIAN_FRONTEND noninteractive
# ADJUST LOCAL TIME
ENV TZ Asia/Jakarta
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
@ -15,15 +14,9 @@ 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 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}-backports main restricted universe multiverse" >> /etc/apt/sources.list
# RUN echo "deb ${SECURITY_MIRROR}/ ${UBUNTU_VERSION}-security main restricted universe multiverse" >> /etc/apt/sources.list
# Install base dependencies
RUN --mount=type=cache,target=/var/cache/apt/archives \
apt -y update && apt -y upgrade && apt -y install bash curl
apt -y update && apt -y upgrade && apt -y install curl
# Clean APT Cache
RUN apt -y clean