-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
30 lines (21 loc) · 629 Bytes
/
Containerfile
File metadata and controls
30 lines (21 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ruby:alpine
ENV JEKYLL_VERSION=4.3.3
ARG BUILD_DATE
LABEL summary="Container Image for running Jekyll."
LABEL maintainer="Uco Mesdag <uco@mesd.ag>"
LABEL build-date=${BUILD_DATE}
ENV PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN apk --no-cache add \
build-base \
bash \
nodejs
RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc; \
gem update --system && \
gem install bundler jekyll:$JEKYLL_VERSION
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
WORKDIR /srv/jekyll
VOLUME /srv/jekyll
EXPOSE 35729
EXPOSE 4000