Make alpine-based image
parent
2f08200403
commit
6effc093c4
34
Dockerfile
34
Dockerfile
|
|
@ -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
|
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
|
||||||
|
|
||||||
RUN apk --no-cache add --update \
|
# This works, but it really bloats the image
|
||||||
ruby-dev \
|
RUN apk --no-cache --update --upgrade add \
|
||||||
build-base \
|
build-base \
|
||||||
libxml2-dev \
|
cairo-dev \
|
||||||
libxslt-dev \
|
pango-dev \
|
||||||
pcre-dev \
|
gobject-introspection-dev \
|
||||||
libffi-dev \
|
gdk-pixbuf-dev \
|
||||||
cairo
|
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
|
# 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.
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue