-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 971 Bytes
/
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
ARG VERSION=3.8
FROM alpine:${VERSION}
LABEL maintainer="[email protected]"
ARG VERSION
ARG ALPINE_MIRROR_BASE="http://dl-cdn.alpinelinux.org"
ARG TZ="Europe/Vienna"
ENV TZ=${TZ}
RUN set -xe &&\
echo $TZ > /etc/TZ &&\
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo "${ALPINE_MIRROR_BASE}/alpine/v${VERSION}/main" > /etc/apk/repositories && \
echo "${ALPINE_MIRROR_BASE}/alpine/v${VERSION}/community" >> /etc/apk/repositories && \
apk update && \
apk --no-cache --update upgrade && \
apk add --no-cache --update bash ca-certificates curl git jq nano openssl tzdata && \
rm -rf /var/cache/apk/* && \
apk update
# The apk update command is run to ensure that the local package index is working.
# Otherwise, apk commands emit warnings and the apk policy command fails.
# Install certificates bundle
ADD TLS_CA_FILE /usr/local/share/ca-certificates/ca_bundle.crt
RUN set -xe &&\
update-ca-certificates
# Add build info
ADD ALPINE_BUILD /