DannyBen/kojo

View on GitHub
examples/single-save/Dockerfile

Summary

Maintainability
Test Coverage
prod.Dockerfile:
  env: production
  packages: postgres
  run_instructions: |
    EXPOSE 80
    ENTRYPOINT prod.sh

dev.Dockerfile:
  env: development
  packages: sqlite
  run_instructions: |
    EXPOSE 3000
    ENTRYPOINT puma -b 0.0.0.0

---
FROM ruby:%{version}
ENV RAILS_ENV %{env}
RUN apt install bash curl %{packages}
%{run_instructions}