Files
wedding/Dockerfile
John Lees-Miller 6e82ba528b Make open source
2018-10-27 16:46:26 +01:00

17 lines
379 B
Docker

FROM ruby:2.5.0
RUN apt-get update -qq &&\
apt-get install -y build-essential libpq-dev nodejs &&\
useradd --user-group --create-home --shell /bin/false app
ENV HOME=/home/app
USER app
COPY --chown=app:app Gemfile Gemfile.lock $HOME/wedding/
WORKDIR $HOME/wedding
RUN bundle
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
COPY --chown=app:app . $HOME/wedding/