From 1081b1bce718dfe13b389a5de509214cd21e12b4 Mon Sep 17 00:00:00 2001 From: Thongrapee Panyapatiphan Date: Sat, 22 Jan 2022 08:20:23 +0700 Subject: [PATCH] Reduce container image size (#485) Co-authored-by: Max Isom --- CHANGELOG.md | 2 ++ Dockerfile | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1e9c2c..9fbfeba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Switched back to an Alpine container base image to reduce size ## [0.5.0] - 2022-01-21 ### Changed diff --git a/Dockerfile b/Dockerfile index d1310ca..63f0f62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM node:16.13.0 AS base +FROM node:16.13.2-alpine AS base # Install ffmpeg -RUN apt-get update && \ - apt-get install -y ffmpeg && \ - rm -rf /var/lib/apt/lists/* +RUN apk update && \ + apk add ffmpeg && \ + rm -rf /var/cache/apk/* WORKDIR /usr/app