Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f08200
commit 6effc09
Showing
1 changed file
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
FROM ruby:2.5-alpine | ||
# This is the official Squib Docker image. | ||
# | ||
FROM ruby:2.6-alpine | ||
WORKDIR /usr/src/app | ||
|
||
LABEL org.squib.url=http://squib.rocks \ | ||
org.squib.github=https://github.com/andymeneely/squib | ||
|
||
RUN apk --no-cache add --update \ | ||
ruby-dev \ | ||
# This works, but it really bloats the image | ||
RUN apk --no-cache --update --upgrade add \ | ||
build-base \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
pcre-dev \ | ||
libffi-dev \ | ||
cairo | ||
cairo-dev \ | ||
pango-dev \ | ||
gobject-introspection-dev \ | ||
gdk-pixbuf-dev \ | ||
librsvg-dev | ||
|
||
RUN gem install squib | ||
|
||
# Remove some of the dev tools | ||
RUN apk del build-base | ||
|
||
RUN apk --no-cache --update --upgrade add \ | ||
ttf-opensans | ||
|
||
# Just for devving on | ||
COPY . /app | ||
# CMD ["sh"] | ||
# RUN apk --no-cache add ncdu | ||
|
||
CMD ["sh"] | ||
|
||
# RUN gem install \ | ||
# squib \ | ||
# -- --use-system-libraries | ||
|
||
# NOTE: STILL UNDER DEVELOPMENT! Don't use this just yet. |