songtianlun
378530cc1b
- Added new GitHub Actions to docker-main.yml to build and push base images - Created a new Dockerfile.base with the base packages installation - Modified the existing Dockerfile to use the new base image - Created a new Dockerfile.build with the build stage to reduce the size of the final image
8 lines
299 B
Docker
8 lines
299 B
Docker
ARG RUBY_VERSION=3.3.5
|
|
# Dockerfile.base
|
|
FROM docker.io/library/ruby:$RUBY_VERSION-slim
|
|
|
|
# Install base packages
|
|
RUN apt-get update -qq && \
|
|
apt-get install --no-install-recommends -y curl libjemalloc2 libvips sqlite3 libpq5 redis-tools && \
|
|
rm -rf /var/lib/apt/lists /var/cache/apt/archives |