eBooru/Dockerfile

23 lines
540 B
Docker
Raw Normal View History

FROM ruby:2.7.3-alpine
2021-11-13 21:31:26 -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
# Nice to have packages
RUN apk --no-cache add nano sudo bash
2021-11-13 21:31:26 -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
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" ]