generated from snowdreamtech/helloworld
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (30 loc) · 1.74 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM alpine:3.20.3
# OCI annotations to image
LABEL org.opencontainers.image.authors="Snowdream Tech" \
org.opencontainers.image.title="Alpine Base Image" \
org.opencontainers.image.description="Docker Images for Alpine. (i386, amd64, arm32v6, arm32v7, arm64, ppc64le,riscv64, s390x)" \
org.opencontainers.image.documentation="https://hub.docker.com/r/snowdreamtech/alpine" \
org.opencontainers.image.base.name="snowdreamtech/alpine:latest" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/snowdreamtech/alpine" \
org.opencontainers.image.vendor="Snowdream Tech" \
org.opencontainers.image.version="3.20.3" \
org.opencontainers.image.url="https://github.com/snowdreamtech/alpine"
# keep the docker container running
ENV KEEPALIVE=0 \
# Ensure the container exec commands handle range of utf8 characters based of
# default locales in base image (https://github.com/docker-library/docs/tree/master/debian#locales)
LANG=C.UTF-8
RUN echo "@main https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories \
&& echo "@community https://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories \
&& echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" | tee -a /etc/apk/repositories \
&& apk add --no-cache musl-locales \
musl-locales-lang \
tzdata \
openssl \
wget \
curl \
ca-certificates \
&& update-ca-certificates
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]