eBooru/Dockerfile
Earlopain 82d7ff59e0
[Docker] Install gems and js packages into the image
To see the changes persisted into the container run `docker-compose` build
`docker-compose down -v` no longer requires to reinstall gems/packages
It's also possible to have branches with different gemfiles, without having
to install between them constantly
2022-01-05 13:41:41 +01:00

23 lines
540 B
Docker

FROM ruby:2.7.3-alpine
# Dependencies for setup and runtime
RUN apk --no-cache add nodejs yarn postgresql-client ffmpeg vips tzdata \
git build-base postgresql-dev glib-dev
# Nice to have packages
RUN apk --no-cache add nano sudo bash
# Install js packages and gems
COPY package.json yarn.lock ./
RUN yarn install
COPY Gemfile Gemfile.lock ./
RUN bundle install
# shoreman
RUN wget -O /usr/bin/shoreman https://github.com/chrismytton/shoreman/raw/master/shoreman.sh \
&& chmod +x /usr/bin/shoreman
WORKDIR /app
CMD [ "shoreman" ]