rework the dockerfile
parent
cd3bf1b3f2
commit
0d61bf8c9f
38
Dockerfile
38
Dockerfile
|
|
@ -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
|
|
||||||
|
|
||||||
# Remove some of the dev tools
|
|
||||||
RUN apk del build-base
|
|
||||||
|
|
||||||
RUN apk --no-cache --update --upgrade add \
|
|
||||||
ttf-opensans
|
|
||||||
|
|
||||||
# Just for devving on
|
|
||||||
# CMD ["sh"]
|
|
||||||
# RUN apk --no-cache add ncdu
|
|
||||||
|
|
||||||
|
# Build the current directory of Squib
|
||||||
|
COPY . /usr/src/app
|
||||||
|
RUN rm /usr/src/app/Gemfile.lock
|
||||||
|
RUN gem install bundler
|
||||||
|
RUN bundle install
|
||||||
|
RUN bundle exec rake install
|
||||||
|
|
||||||
|
# ENTRYPOINT [ "sh" ]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue