alpine/Dockerfile

27 lines
717 B
Docker

ARG ALPINE_VERSION=3.19
FROM alpine:${ALPINE_VERSION}
LABEL maintainer="<Aditya Prima> aprimediet@gmail.com"
ARG ALPINE_VERSION=3.19
ARG S6_VERSION=3.1.6.2
# ARG ALPINE_MIRROR=https://dl-cdn.alpinelinux.org
ARG TZ=Asia/Jakarta
# SET REPOSITORY MIRROR
# RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/main" > /etc/apk/repositories
# RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/community" >> /etc/apk/repositories
# Set User as root
USER root
# INSTALL BASE DEPENDENCIES
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update \
libcap tzdata curl
# SET LOCAL TIMEZONE
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*