forked from waschinski/photo-stream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (14 loc) · 785 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG BASE_IMAGE=ruby:3.1.2-alpine3.15
FROM ${BASE_IMAGE}
ENV VIPSVER 8.12.2
RUN apk update && apk upgrade &&\
apk add --update --no-cache build-base glib-dev libexif-dev expat-dev tiff-dev jpeg-dev libgsf-dev git rsync lftp openssh &&\
rm -rf /var/cache/apk/*
RUN wget -O ./vips-$VIPSVER.tar.gz https://github.com/libvips/libvips/releases/download/v$VIPSVER/vips-$VIPSVER.tar.gz && tar -xvzf ./vips-$VIPSVER.tar.gz && cd vips-$VIPSVER && ./configure && make && make install && cd .. && rm -r vips-$VIPSVER.tar.gz vips-$VIPSVER
COPY ./ /photo-stream
WORKDIR /photo-stream
RUN ruby -v && gem install bundler jekyll &&\
bundle config --local build.sassc --disable-march-tune-native &&\
bundle install
EXPOSE 4000
ENTRYPOINT bundle exec jekyll serve --host 0.0.0.0