mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-11-24 01:56:27 +09:00
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/
18 lines
369 B
Plaintext
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", "."]
|