Files
once-campfire/Dockerfile-export
Mike Dalessio f6637892a5 Upgrade runtime to Ruby 4.0.10
Ruby 4.0.10 fixes memory-safety bugs in Regexp and in String case
conversion. Move `.ruby-version`, `Dockerfile` and `Dockerfile-export`
to it, and bump `ruby/setup-ruby` to v1.342.0, the first release that
installs 4.0.10.

ref: https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
2026-11-18 22:10:32 -05:00

18 lines
369 B
Plaintext

# syntax = docker/dockerfile:1
# Make sure it matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=4.0.10
FROM ruby:$RUBY_VERSION-slim as base
# Install the tools we need
RUN apt update && apt install -y zip
# Export from this folder
WORKDIR /campfire
# Copy application code
COPY . .
# Create the archive
CMD ["zip", "-r", "/campfire.zip", "."]