mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
(build) improved docker image building time
This commit is contained in:
parent
6bd8b2c868
commit
1602a10fd0
@ -2,6 +2,8 @@
|
||||
|
||||
## next deploy
|
||||
|
||||
- Improved docker image building time
|
||||
|
||||
## v5.4.4 2022 June 8
|
||||
|
||||
- Check shopping cart items are valid before online payment
|
||||
|
23
Dockerfile
23
Dockerfile
@ -44,8 +44,7 @@ RUN bundle config --global frozen 1
|
||||
|
||||
# Install gems in a cache efficient way
|
||||
WORKDIR /tmp
|
||||
COPY Gemfile /tmp/
|
||||
COPY Gemfile.lock /tmp/
|
||||
COPY Gemfile* /tmp/
|
||||
RUN bundle config set --local without 'development test doc' && bundle install && bundle binstubs --all
|
||||
|
||||
# Prepare the application directories
|
||||
@ -72,16 +71,16 @@ COPY docker/database.yml /usr/src/app/config/database.yml
|
||||
COPY . /usr/src/app
|
||||
|
||||
# Volumes (the folders are created by setup.sh)
|
||||
VOLUME /usr/src/app/invoices
|
||||
VOLUME /usr/src/app/payment_schedules
|
||||
VOLUME /usr/src/app/exports
|
||||
VOLUME /usr/src/app/imports
|
||||
VOLUME /usr/src/app/public
|
||||
VOLUME /usr/src/app/public/uploads
|
||||
VOLUME /usr/src/app/public/packs
|
||||
VOLUME /usr/src/app/accounting
|
||||
VOLUME /usr/src/app/proof_of_identity_files
|
||||
VOLUME /var/log/supervisor
|
||||
VOLUME /usr/src/app/invoices \
|
||||
/usr/src/app/payment_schedules \
|
||||
/usr/src/app/exports \
|
||||
/usr/src/app/imports \
|
||||
/usr/src/app/public \
|
||||
/usr/src/app/public/uploads \
|
||||
/usr/src/app/public/packs \
|
||||
/usr/src/app/accounting \
|
||||
/usr/src/app/proof_of_identity_files \
|
||||
/var/log/supervisor
|
||||
|
||||
# Expose port 3000 to the Docker host, so we can access it from the outside
|
||||
EXPOSE 3000
|
||||
|
Loading…
x
Reference in New Issue
Block a user