2021-11-16 15:32:40 -05:00
|
|
|
FROM ruby:2.7.3-alpine
|
2021-11-13 21:31:26 -05:00
|
|
|
|
2021-11-16 15:32:40 -05:00
|
|
|
# Dependencies for setup and runtime
|
|
|
|
RUN apk --no-cache add nodejs yarn postgresql-client ffmpeg vips tzdata \
|
|
|
|
git build-base postgresql-dev glib-dev
|
2021-11-13 21:31:26 -05:00
|
|
|
|
2021-11-16 15:32:40 -05:00
|
|
|
# Nice to have packages
|
|
|
|
RUN apk --no-cache add nano sudo bash
|
2021-11-13 21:31:26 -05:00
|
|
|
|
2022-01-05 07:41:41 -05:00
|
|
|
# Install js packages and gems
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
RUN yarn install
|
|
|
|
|
|
|
|
COPY Gemfile Gemfile.lock ./
|
|
|
|
RUN bundle install
|
|
|
|
|
2021-11-13 21:31:26 -05:00
|
|
|
# shoreman
|
2021-11-14 08:12:51 -05:00
|
|
|
RUN wget -O /usr/bin/shoreman https://github.com/chrismytton/shoreman/raw/master/shoreman.sh \
|
|
|
|
&& chmod +x /usr/bin/shoreman
|
2021-11-13 21:31:26 -05:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
CMD [ "shoreman" ]
|