From 428b68e7b8955cce3577ff91d4ee82748f0148d1 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Thu, 17 Jun 2021 12:09:08 +0300 Subject: [PATCH] [docker] test entrypoint on non-root directory --- contrib/docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index dc9f5501..ea6bee67 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -44,12 +44,12 @@ RUN apk --no-cache --virtual build-dependendencies add make gcc g++ libtool zlib # 2. Adding required libraries to run i2pd to ensure it will run. RUN apk --no-cache add boost-filesystem boost-system boost-program_options boost-date_time boost-thread boost-iostreams openssl miniupnpc musl-utils libstdc++ -COPY entrypoint.sh /entrypoint.sh -RUN chmod a+x /entrypoint.sh +COPY entrypoint.sh /opt/entrypoint.sh +RUN chmod a+x /opt/entrypoint.sh RUN echo "export DATA_DIR=${DATA_DIR}" >> /etc/profile VOLUME "$DATA_DIR" EXPOSE 7070 4444 4447 7656 2827 7654 7650 USER i2pd -ENTRYPOINT [ "/entrypoint.sh" ] +ENTRYPOINT [ "/opt/entrypoint.sh" ]