FROM alpine/git as git

WORKDIR /themes
RUN git clone https://sigyl.com/git/themes/casper.git

FROM ghost:3.14.0
# USER root
RUN apt-get update
RUN apt-get install -y gettext

COPY config.production.json /var/lib/ghost/
COPY --from=git /themes/ /var/lib/ghost/content/themes/
COPY post.hbs /hbs/
COPY run.sh /
CMD ["sh", "/run.sh"]