kopia lustrzana https://github.com/OpenDroneMap/WebODM
No use starting cron during build, start on launch instead.
rodzic
2688b9f397
commit
73f0749085
|
@ -61,8 +61,7 @@ RUN apt-get remove -y g++ python3-dev libpq-dev && apt-get autoremove -y && \
|
||||||
|
|
||||||
# Setup cron
|
# Setup cron
|
||||||
COPY --chmod=0644 nginx/crontab ./nginx/crontab
|
COPY --chmod=0644 nginx/crontab ./nginx/crontab
|
||||||
RUN ln -s ./nginx/crontab /var/spool/cron/crontabs/root && \
|
RUN ln -s ./nginx/crontab /var/spool/cron/crontabs/root
|
||||||
service cron enable
|
|
||||||
|
|
||||||
# Install project Node dependencies
|
# Install project Node dependencies
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
|
|
|
@ -17,7 +17,7 @@ services:
|
||||||
webapp:
|
webapp:
|
||||||
image: opendronemap/webodm_webapp
|
image: opendronemap/webodm_webapp
|
||||||
container_name: webapp
|
container_name: webapp
|
||||||
entrypoint: /bin/bash -c "chmod +x /webodm/*.sh && /bin/bash -c \"/webodm/wait-for-postgres.sh db /webodm/wait-for-it.sh -t 0 broker:6379 -- /webodm/start.sh\""
|
entrypoint: /bin/bash -c "service cron start && chmod +x /webodm/*.sh && /bin/bash -c \"/webodm/wait-for-postgres.sh db /webodm/wait-for-it.sh -t 0 broker:6379 -- /webodm/start.sh\""
|
||||||
volumes:
|
volumes:
|
||||||
- ${WO_MEDIA_DIR}:/webodm/app/media:z
|
- ${WO_MEDIA_DIR}:/webodm/app/media:z
|
||||||
ports:
|
ports:
|
||||||
|
|
Ładowanie…
Reference in New Issue