5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 12:26:07 +00:00

agregar optimizadores de imágenes

es una herramienta secreta que nos va a servir luego
This commit is contained in:
f 2020-02-06 13:30:21 -03:00
parent 6434d130be
commit 61e9bf70dc
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -2,6 +2,7 @@
# el mismo repositorio de trabajo. Cuando tengamos CI/CD algunas cosas
# como el tarball van a tener que cambiar porque ya vamos a haber hecho
# un clone/pull limpio.
FROM sutty/oxipng:latest as oxipng
FROM alpine:3.11 as build
MAINTAINER "f <f@sutty.nl>"
@ -67,10 +68,14 @@ RUN rm -rf ./node_modules ./tmp/cache ./.git
FROM sutty/monit:latest
ENV RAILS_ENV production
# Instalar oxipng
COPY --from=oxipng --chown=root:root /root/.cargo/bin/oxipng /usr/bin/oxipng
RUN chmod 755 /usr/bin/oxipng
# Instalar las dependencias, separamos la librería de base de datos para
# poder reutilizar este primer paso desde otros contenedores
RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-bigdecimal ruby-rake
RUN apk add --no-cache postgresql-libs libssh2 file rsync git
RUN apk add --no-cache postgresql-libs libssh2 file rsync git jpegoptim vips
# Chequear que la versión de ruby sea la correcta
RUN test "2.6.5" = `ruby -e 'puts RUBY_VERSION'`