-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Dockerfile
52 lines (39 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Usage:
# docker volume create pgdata
# docker volume create gems
# docker-compose up
# docker-compose exec web bundle exec rake db:create db:schema:load ffcrm:demo:load
FROM ruby:3.3
LABEL author="Steve Kenworthy"
ENV HOME /home/app
RUN mkdir -p $HOME
WORKDIR $HOME
ADD . $HOME
RUN apt-get update && \
apt-get install -y imagemagick tzdata && \
apt-get autoremove -y && \
cp config/database.postgres.docker.yml config/database.yml && \
gem install bundler && \
bundle config set --local deployment 'true' && \
bundle install --deployment && \
bundle exec rails assets:precompile
CMD ["bundle","exec","rails","s"]
EXPOSE 3000
# # Usage:
# # docker volume create pgdata
# # docker volume create gems
# # docker-compose up
# # docker-compose exec web bundle exec rake db:create db:schema:load ffcrm:demo:load assets:precompile
# FROM phusion/passenger-ruby24
# MAINTAINER Steve Kenworthy
# ENV HOME /home/app
# ADD . /home/app
# WORKDIR /home/app
# RUN apt-get update \
# && apt-get install -y imagemagick firefox tzdata \
# && apt-get autoremove -y \
# && cp config/database.postgres.docker.yml config/database.yml \
# && chown -R app:app /home/app \
# && rm -f /etc/service/nginx/down /etc/nginx/sites-enabled/default \
# && cp .docker/nginx/sites-enabled/ffcrm.conf /etc/nginx/sites-enabled/ffcrm.conf \
# && bundle install --deployment