1 changed files with 21 additions and 25 deletions
@ -1,31 +1,27 @@ |
|||||||
# This is the official Squib Docker image. |
# This is the official Squib Docker image. |
||||||
# |
# |
||||||
FROM ruby:2.6-alpine |
FROM ruby:2.7-slim |
||||||
WORKDIR /usr/src/app |
WORKDIR /usr/src/app |
||||||
|
|
||||||
LABEL org.squib.url=http://squib.rocks \ |
LABEL org.squib.url=http://squib.rocks \ |
||||||
org.squib.github=https://github.com/andymeneely/squib |
org.squib.github=https://github.com/andymeneely/squib |
||||||
|
|
||||||
# This works, but it really bloats the image |
RUN apt-get update && \ |
||||||
RUN apk --no-cache --update --upgrade add \ |
apt-get install -y \ |
||||||
build-base \ |
libgirepository1.0-dev \ |
||||||
cairo-dev \ |
build-essential \ |
||||||
pango-dev \ |
ruby-dev \ |
||||||
gobject-introspection-dev \ |
ruby \ |
||||||
gdk-pixbuf-dev \ |
ruby-gdk-pixbuf2 \ |
||||||
librsvg-dev |
git \ |
||||||
|
fonts-open-sans |
||||||
RUN gem install squib |
|
||||||
|
# Build the current directory of Squib |
||||||
# Remove some of the dev tools |
COPY . /usr/src/app |
||||||
RUN apk del build-base |
RUN rm /usr/src/app/Gemfile.lock |
||||||
|
RUN gem install bundler |
||||||
RUN apk --no-cache --update --upgrade add \ |
RUN bundle install |
||||||
ttf-opensans |
RUN bundle exec rake install |
||||||
|
|
||||||
# Just for devving on |
# ENTRYPOINT [ "sh" ] |
||||||
# CMD ["sh"] |
|
||||||
# RUN apk --no-cache add ncdu |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue