Reduce container image size (#485)

Co-authored-by: Max Isom <hi@maxisom.me>
This commit is contained in:
Thongrapee Panyapatiphan 2022-01-22 08:20:23 +07:00 committed by GitHub
parent 8041586c31
commit 1081b1bce7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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