This commit is contained in:
2021-11-29 15:51:56 +01:00
parent 3c70fe7a1e
commit e509db16a6
5 changed files with 30 additions and 16 deletions
+4 -2
View File
@@ -1,4 +1,5 @@
FROM basex/basexhttp:9.4.6
# FROM basex/basexhttp:9.4.6
FROM basex/basexhttp:latest
# COPY ./bashrc /srv/.bashrc
# COPY ./inputrc /srv/.inputrc
@@ -8,7 +9,8 @@ FROM basex/basexhttp:9.4.6
COPY ./gdp-entrypoint.sh /usr/local/bin
USER root
RUN chmod +x /usr/local/bin/gdp-entrypoint.sh
# RUN ln -s /usr/local/bin/gdp-entrypoint.sh /srv/ # backwards compat
# RUN chown -R basex:basex /usr/local/bin/gdp-entrypoint.sh
# # RUN ln -s /usr/local/bin/gdp-entrypoint.sh /srv/ # backwards compat
# RUN chown -R basex:basex /srv/basex
USER basex
CMD ["/bin/sh","/usr/local/bin/gdp-entrypoint.sh"]
+3 -3
View File
@@ -50,10 +50,10 @@ ARG USER_UNAME
ARG USER_GID
ARG USER_GNAME
# RUN addgroup -g 1000 gdp && \
RUN if [ $(getent group ${USER_GNAME}) ]; then echo "group ${USER_GNAME} already exists"; else addgroup -g ${USER_GID} ${USER_GNAME}; fi
# RUN addgroup -g 1000 ${USER_GNAME}
# adduser -h /home/gdp -D -u 1000 gdp && \
RUN adduser -u ${USER_UID} -G users -s /bin/sh -D ${USER_UNAME}
RUN adduser -u ${USER_UID} -G ${USER_GNAME} -s /bin/sh -D ${USER_UNAME}
# chown -R gdp:gdp /home/gdp
USER ${USER_UNAME}
+9 -6
View File
@@ -4,14 +4,17 @@ cat /etc/passwd|grep 1000
cd /app
echo "Cleaning node_modules"
rm -rf node_modules
# echo "Cleaning node_modules"
# rm -rf node_modules
echo "Cleaning npm cache"
npm cache clean --f
# echo "Cleaning npm cache"
# npm cache clean --f
echo "Npm install"
npm install
# echo "Npm install"
# npm install
echo "Npm clean install"
npm ci
# echo "Run npm dev"
# npm run dev