@@ -16,6 +16,9 @@ RUN node -v
16
16
17
17
RUN apt-get update -qq && apt-get install -y build-essential nodejs yarn
18
18
19
+ RUN apt install libmagickwand-dev
20
+ RUN apt install imagemagick
21
+
19
22
# Copy the Gemfile as well as the Gemfile.lock and install
20
23
# the RubyGems. This is a separate step so the dependencies
21
24
# will be cached unless changes to one of those two files
@@ -30,15 +33,15 @@ RUN yarn install --check-files
30
33
# Copy the main application.
31
34
COPY . ./
32
35
33
- # Precompile Rails assets
34
- RUN RAILS_ENV=production bundle exec rake assets:clean
35
- RUN RAILS_ENV=production bundle exec rake assets:precompile
36
-
37
36
# Expose port 3000 to the Docker host, so we can access it
38
37
# from the outside.
39
38
EXPOSE 3000:3000
40
39
41
40
# The main command to run when the container starts. Also
42
41
# tell the Rails dev server to bind to all interfaces by
43
42
# default.
44
- CMD ["bundle" , "exec" , "rails" , "server" , "-b" , "0.0.0.0" ]
43
+ # CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
44
+
45
+ RUN chmod 777 ./entrypoint.sh
46
+ RUN chmod +x ./entrypoint.sh
47
+ ENTRYPOINT [ "bash" , "-c" , "./entrypoint.sh" ]
0 commit comments