1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-21 15:54:22 +01:00

(build) improved docker image building time

This commit is contained in:
Sylvain 2022-06-08 10:14:47 +02:00
parent 6bd8b2c868
commit 1602a10fd0
2 changed files with 13 additions and 12 deletions

View File

@ -2,6 +2,8 @@
## next deploy ## next deploy
- Improved docker image building time
## v5.4.4 2022 June 8 ## v5.4.4 2022 June 8
- Check shopping cart items are valid before online payment - Check shopping cart items are valid before online payment

View File

@ -44,8 +44,7 @@ RUN bundle config --global frozen 1
# Install gems in a cache efficient way # Install gems in a cache efficient way
WORKDIR /tmp WORKDIR /tmp
COPY Gemfile /tmp/ COPY Gemfile* /tmp/
COPY Gemfile.lock /tmp/
RUN bundle config set --local without 'development test doc' && bundle install && bundle binstubs --all RUN bundle config set --local without 'development test doc' && bundle install && bundle binstubs --all
# Prepare the application directories # Prepare the application directories
@ -72,16 +71,16 @@ COPY docker/database.yml /usr/src/app/config/database.yml
COPY . /usr/src/app COPY . /usr/src/app
# Volumes (the folders are created by setup.sh) # Volumes (the folders are created by setup.sh)
VOLUME /usr/src/app/invoices VOLUME /usr/src/app/invoices \
VOLUME /usr/src/app/payment_schedules /usr/src/app/payment_schedules \
VOLUME /usr/src/app/exports /usr/src/app/exports \
VOLUME /usr/src/app/imports /usr/src/app/imports \
VOLUME /usr/src/app/public /usr/src/app/public \
VOLUME /usr/src/app/public/uploads /usr/src/app/public/uploads \
VOLUME /usr/src/app/public/packs /usr/src/app/public/packs \
VOLUME /usr/src/app/accounting /usr/src/app/accounting \
VOLUME /usr/src/app/proof_of_identity_files /usr/src/app/proof_of_identity_files \
VOLUME /var/log/supervisor /var/log/supervisor
# Expose port 3000 to the Docker host, so we can access it from the outside # Expose port 3000 to the Docker host, so we can access it from the outside
EXPOSE 3000 EXPOSE 3000