2022-04-13 19:44:52 +00:00
|
|
|
ARG RUBY_VERSION=2.7
|
|
|
|
ARG RUBY_PATCH=6
|
|
|
|
ARG ALPINE_VERSION=3.13.10
|
|
|
|
ARG BASE_IMAGE=registry.nulo.in/sutty/rails
|
|
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}
|
2022-04-13 15:34:42 +00:00
|
|
|
ARG PANDOC_VERSION=2.18
|
2019-07-29 18:15:23 +00:00
|
|
|
ENV RAILS_ENV production
|
2019-07-26 23:57:11 +00:00
|
|
|
|
|
|
|
# Instalar las dependencias, separamos la librería de base de datos para
|
|
|
|
# poder reutilizar este primer paso desde otros contenedores
|
2022-03-07 15:49:49 +00:00
|
|
|
#
|
2019-07-26 23:57:11 +00:00
|
|
|
# Necesitamos yarn para que Jekyll pueda generar los sitios
|
|
|
|
# XXX: Eliminarlo cuando extraigamos la generación de sitios del proceso
|
|
|
|
# principal
|
2022-03-07 22:37:05 +00:00
|
|
|
RUN apk add --no-cache libxslt libxml2 postgresql-libs libssh2 \
|
|
|
|
rsync git jpegoptim vips tectonic oxipng git-lfs openssh-client \
|
2022-12-29 17:55:30 +00:00
|
|
|
yarn daemonize ruby-webrick postgresql-client dateutils file
|
2022-03-07 15:49:49 +00:00
|
|
|
|
|
|
|
RUN gem install --no-document --no-user-install foreman
|
2022-03-07 22:37:05 +00:00
|
|
|
RUN wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O - | tar --strip-components 1 -xvzf - pandoc-${PANDOC_VERSION}/bin/pandoc && mv /bin/pandoc /usr/bin/pandoc
|
2023-04-06 14:27:28 +00:00
|
|
|
RUN apk add npm && npm install -g pnpm@~7 && apk del npm
|
2022-03-07 15:49:49 +00:00
|
|
|
|
2022-04-15 13:57:51 +00:00
|
|
|
COPY ./monit.conf /etc/monit.d/sutty.conf
|
|
|
|
|
2023-02-06 19:09:51 +00:00
|
|
|
RUN apk add npm && npm install -g pnpm && apk del npm
|
|
|
|
|
2022-03-07 22:37:05 +00:00
|
|
|
VOLUME "/srv"
|
2019-07-26 23:57:11 +00:00
|
|
|
|
|
|
|
EXPOSE 3000
|
2020-09-22 18:17:59 +00:00
|
|
|
EXPOSE 9394
|