mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-23 18:48:58 +00:00
shave off a layer
This commit is contained in:
parent
5cf8e68327
commit
b254e018e5
@ -5,11 +5,10 @@ COPY build/erpnext-assets/install_app.sh /install_app
|
|||||||
RUN /install_app erpnext https://github.com/frappe/erpnext
|
RUN /install_app erpnext https://github.com/frappe/erpnext
|
||||||
|
|
||||||
FROM frappe/frappe-assets:develop
|
FROM frappe/frappe-assets:develop
|
||||||
RUN cp /home/frappe/frappe-bench/sites/apps.txt /home/frappe/frappe-bench/sites/apps.bak
|
|
||||||
COPY --from=0 /home/frappe/frappe-bench/sites/ /var/www/html/
|
COPY --from=0 /home/frappe/frappe-bench/sites/ /var/www/html/
|
||||||
COPY --from=0 /rsync /rsync
|
COPY --from=0 /rsync /rsync
|
||||||
RUN mv /home/frappe/frappe-bench/sites/apps.bak /home/frappe/frappe-bench/sites/apps.txt \
|
RUN echo -n "\nerpnext" >> /var/www/html/apps.txt
|
||||||
&& echo -n "\nerpnext" >> /home/frappe/frappe-bench/sites/apps.txt
|
|
||||||
|
|
||||||
VOLUME [ "/assets" ]
|
VOLUME [ "/assets" ]
|
||||||
|
|
||||||
|
@ -28,3 +28,5 @@ mkdir -p /home/frappe/frappe-bench/sites/assets/${APP_NAME}
|
|||||||
cp -R /home/frappe/frappe-bench/apps/${APP_NAME}/${APP_NAME}/public/* /home/frappe/frappe-bench/sites/assets/${APP_NAME}
|
cp -R /home/frappe/frappe-bench/apps/${APP_NAME}/${APP_NAME}/public/* /home/frappe/frappe-bench/sites/assets/${APP_NAME}
|
||||||
|
|
||||||
echo "rsync -a --delete /var/www/html/assets/${APP_NAME} /assets" > /rsync
|
echo "rsync -a --delete /var/www/html/assets/${APP_NAME} /assets" > /rsync
|
||||||
|
|
||||||
|
rm /home/frappe/frappe-bench/sites/apps.txt
|
Loading…
Reference in New Issue
Block a user