From 42bc4c8acb1b86ff8071f069533af0a7d7c265c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20L=C3=B3pez?= <ldotlopez@gmail.com>
Date: Sat, 30 Apr 2022 12:37:59 +0200
Subject: [PATCH] Rebase docker image on top of alpine linux

---
 Dockerfile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 6b01f7a..5252376 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,16 +1,18 @@
-FROM node:16-bullseye as base
+FROM alpine as base
 
-RUN apt-get update && apt-get install -y openssl
+RUN apk add --no-cache nodejs yarn openssl tini
 RUN mkdir /app
 WORKDIR /app
 ENV NODE_ENV=production
 ADD yarn.lock package.json ./
 RUN yarn install --production
 
-FROM node:16-bullseye-slim as prod
+FROM alpine as prod
 
-RUN apt-get update && apt-get install openssl && apt-get clean -y && rm -rf /var/lib/apt/lists/*
+RUN apk add --no-cache nodejs yarn openssl tini
 WORKDIR /app
 COPY --from=base /app /app
 ADD . .
+
+ENTRYPOINT ["/sbin/tini", "--"]
 CMD ["yarn", "start"]
-- 
GitLab