forked from e621ng/e621ng

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
23 lines
540 B
Docker
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" ]
|