Migrate to alpine linux

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-12-27 20:08:30 -03:00
parent fbdd924a45
commit 025d4eaceb
6 changed files with 12 additions and 12 deletions

View file

@ -25,21 +25,21 @@ CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
WORKDIR /etc/nginx
RUN clean-install \
RUN apk add -U --no-cache \
diffutils \
libcap2-bin
libcap
COPY --chown=www-data:www-data . /
# Fix permission during the build to avoid issues at runtime
# with volumes (custom templates)
RUN bash -eu -c ' \
RUN bash -xeu -c ' \
writeDirs=( \
/etc/ingress-controller \
/etc/ingress-controller/ssl \
/etc/ingress-controller/auth \
/var/log \
/var/log/nginx \
/tmp \
); \
for dir in "${writeDirs[@]}"; do \
mkdir -p ${dir}; \