Files
wedding/Dockerfile
Rene Kaßeboehmer 7bd5436ba4
Some checks failed
CI / build (push) Has been cancelled
functional first commit
2025-09-13 18:53:43 +01:00

20 lines
510 B
Docker

FROM ruby:2.7.8
# Point to Debian archive repos instead of the dead ones
RUN apt-get update -qq && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
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/