Skip to content
Snippets Groups Projects
Commit 8801741e authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

fix

parent c47d83c1
No related branches found
No related tags found
No related merge requests found
Pipeline #8231 passed
ARG DOCKER_REGISTRY=registry.cyberbrain.pw ARG DOCKER_REGISTRY=registry.cyberbrain.pw
FROM $DOCKER_REGISTRY/tools/docker/ubuntu:latest AS source FROM $DOCKER_REGISTRY/tools/docker/ubuntu:latest AS source
COPY entrypoint.sh /entrypoint.sh
RUN set -ex && \ RUN set -ex && \
chmod a+x /entrypoint.sh && \
apt-get update -y && \ apt-get update -y && \
apt-get install -y --no-install-suggests --no-install-recommends mariadb-client && \ apt-get install -y --no-install-suggests --no-install-recommends mariadb-client && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
RUN set -ex && \
chmod a+x /entrypoint.sh
VOLUME [ "/backup" ] VOLUME [ "/backup" ]
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "help" ]
...@@ -5,9 +5,8 @@ unset TO_DIE ...@@ -5,9 +5,8 @@ unset TO_DIE
die () { die () {
RED='\033[0;31m' RED='\033[0;31m'
NC='\033[0m' # No Color NC='\033[0m' # No Color
echo -e "${RED}$1${NC}" echo "${RED}$1${NC}"
TO_DIE=1 exit 1
} }
######################################################################## ########################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment