Skip to content

Instantly share code, notes, and snippets.

View microstudi's full-sized avatar

Ivan Vergés microstudi

View GitHub Profile
@microstudi
microstudi / Dockerfile
Last active October 5, 2023 11:13
Decidim 0.28 Optimized Dockerfile (for an app)
FROM ruby:3.1 AS builder
RUN NODE_MAJOR=20 && \
apt-get update && apt-get upgrade -y && apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y nodejs yarn \

Keybase proof

I hereby claim:

  • I am microstudi on github.
  • I am ivanverges (https://keybase.io/ivanverges) on keybase.
  • I have a public key whose fingerprint is B359 3E91 8CCC D5C5 4AE9 6503 516A 3620 6D21 B1DA

To claim this, I am signing this object: