ARG ALPINE_VERSION=3.19 FROM alpine:${ALPINE_VERSION} LABEL maintainer=" 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 apk add --update --no-cache \ bash libcap tzdata curl # SET LOCAL TIMEZONE RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # Get S6-OVERLAY ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-noarch.tar.xz /tmp ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-x86_64.tar.xz /tmp ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp # Install S6-Overlay RUN tar -Jxpf /tmp/s6-overlay-noarch.tar.xz -C / && \ tar -Jxpf /tmp/s6-overlay-x86_64.tar.xz -C / && \ tar -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz -C / # Remove S6-Overlay RUN rm -f /tmp/s6-overlay-noarch.tar.xz && \ rm -f /tmp/s6-overlay-x86_64.tar.xz && \ rm -f /tmp/s6-overlay-symlinks-noarch.tar.xz ENTRYPOINT [ "/init" ]