Skip to content

Commit

Permalink
Naive but working app Dockerfile generating Decidim app internally
Browse files Browse the repository at this point in the history
and using the decidim-generator image published on Github Packages
  • Loading branch information
oliverbarnes committed Nov 20, 2020
1 parent bf84b6d commit b251289
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile-deploy
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"]

0 comments on commit b251289

Please sign in to comment.