-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Naive but working app Dockerfile generating Decidim app internally
and using the decidim-generator image published on Github Packages
- Loading branch information
1 parent
bf84b6d
commit b251289
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
ARG base_image=decidim/decidim:latest | ||
ARG base_image=docker.pkg.github.com/decidim/docker/decidim-generator:latest | ||
|
||
FROM $base_image | ||
LABEL maintainer="[email protected]" | ||
|
||
RUN decidim . | ||
RUN bundle check || bundle install | ||
RUN bundle exec rake assets:precompile | ||
|
||
ENV RAILS_ENV=production | ||
ENV PORT=3000 | ||
ENV RAILS_SERVE_STATIC_FILES=true | ||
|
||
ONBUILD COPY Gemfile Gemfile.lock ./ | ||
ONBUILD RUN bundle install | ||
ONBUILD COPY . . | ||
ONBUILD RUN bundle install | ||
ONBUILD RUN bundle exec rake assets:precompile | ||
EXPOSE 3000 | ||
|
||
ENTRYPOINT [] | ||
ENV RAILS_SERVE_STATIC_FILES=true | ||
CMD bundle exec rails s | ||
|
||
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"] |