start.sh copying and starting fix, deployment

This commit is contained in:
2021-03-23 11:10:01 +01:00
parent 07ca7a7833
commit 3506a17bc7

View File

@@ -16,7 +16,8 @@ RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.li
RUN useradd -ms /bin/bash -r almond-cloud && id almond-cloud
COPY --chown=almond-cloud:almond-cloud start.sh /opt/almond-cloud/
WORKDIR /opt/almond-cloud/
RUN echo "build_from_source = true" > .npmrc && \
RUN chown -R almond-cloud:almond-cloud /opt/almond-cloud && \
echo "build_from_source = true" > .npmrc && \
echo "sqlite = external" >> .npmrc && \
echo "sqlite_libname = sqlcipher" >> .npmrc && \
su almond-cloud -c 'CPLUS_INCLUDE_PATH=/usr/include/sqlcipher npm install' && \