mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-17 21:36:19 +00:00
Added the option to choose another apk repo aside from the default latest-stable (eg. edge)
This commit is contained in:
parent
1a4f4989e7
commit
86f372f3b6
1 changed files with 5 additions and 3 deletions
|
|
@ -1,8 +1,10 @@
|
|||
# syntax = docker/dockerfile:1
|
||||
# To check container versions, run: docker exec myvemail bash -c "postconf -d mail_version; dovecot --version; mariadb -V"
|
||||
|
||||
FROM alpine:edge
|
||||
|
||||
# Build ARG for apk repository
|
||||
ARG apkrepo
|
||||
|
||||
# LABEL about the custom image
|
||||
LABEL description="MyveMail"
|
||||
|
||||
|
|
@ -18,8 +20,8 @@ ADD run/docker-entrypoint /docker-entrypoint/
|
|||
ADD run/installer.sh /tmp/
|
||||
|
||||
# Update Ubuntu Software repository and install requisites
|
||||
RUN printf '%s\n' 'https://dl-cdn.alpinelinux.org/alpine/latest-stable/main/' \
|
||||
'https://dl-cdn.alpinelinux.org/alpine/latest-stable/community/' >/etc/apk/repositories \
|
||||
RUN printf '%s\n' "https://dl-cdn.alpinelinux.org/alpine/${apkrepo:-latest-stable}/main/" \
|
||||
"https://dl-cdn.alpinelinux.org/alpine/${apkrepo:-latest-stable}/community/" >/etc/apk/repositories \
|
||||
# Pre-create vmail user
|
||||
&& addgroup -g 600 vmail \
|
||||
&& adduser -S -D -h /var/vmail -u 600 -G vmail vmail \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue