-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
39 lines (27 loc) · 1.04 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
36
37
38
FROM nimmis/alpine-micro:latest
MAINTAINER nimmis <[email protected]>
ARG IMAGE_NAME
ARG DOCKER_REPO
ARG BUILD_DATE
ARG VCS_REF
# fix labels
LABEL maintainer="nimmis <[email protected]>" \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.name="MariaDB database" \
org.label-schema.url="https://www.nimmis.nu" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/nimmis/docker-alpine-mariadb.git"
COPY root/. /
ENV LANG="en_US.UTF-8" \
LC_ALL="en_US.UTF-8" \
LANGUAGE="en_US.UTF-8"
RUN apk update && apk upgrade && \
# Make info file about this build
mkdir -p /etc/BUILDS/ && \
printf "Build of %s, date: %s\n" $(echo $IMAGE_NAME | sed 's#^.*io/##') `date -u +"%Y-%m-%dT%H:%M:%SZ"` > /etc/BUILDS/$(echo $DOCKER_REPO | awk -F '/' '{print $NF}') && \
# add mariadb server and client
apk add mariadb mariadb-client && \
# clear cache
rm -rf /var/cache/apk/*
VOLUME /data