[docker] test entrypoint on non-root directory

This commit is contained in:
R4SAS 2021-06-17 12:09:08 +03:00 committed by GitHub
parent 3dc19bfd31
commit 428b68e7b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ]