Add config/docker/Dockerfile
This commit is contained in:
parent
ee009b3bec
commit
faa132e468
1 changed files with 28 additions and 0 deletions
28
config/docker/Dockerfile
Normal file
28
config/docker/Dockerfile
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
# Install additional packages
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
calibre \
|
||||||
|
default-mysql-client \
|
||||||
|
libvips \
|
||||||
|
shared-mime-info \
|
||||||
|
# ->>>>>> ADD THIS LINE percona-toolkit \ # ADD THIS LINE <------------------------ BEFORE ZIP
|
||||||
|
zip
|
||||||
|
# Clean and mount repository at /otwa
|
||||||
|
RUN rm -rf /otwa && mkdir -p /otwa
|
||||||
|
WORKDIR /otwa
|
||||||
|
VOLUME /otwa
|
||||||
|
|
||||||
|
# Install ruby packages
|
||||||
|
COPY Gemfile .
|
||||||
|
COPY Gemfile.lock .
|
||||||
|
RUN gem install bundler -v 2.6.3 && bundle install
|
||||||
|
|
||||||
|
# Default command to run in a new container
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD bundle exec rails s -p 3000
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in a new issue