mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-08-25 00:08:09 +09:00
b827d7ca9b
Three pins, two values: Dockerfile said 3.4.5, Dockerfile-export said 3.4.7, .ruby-version said 3.4.5 — the export image had already been bumped on its own and nobody noticed the other two lagging. Both Dockerfiles carry a comment telling you to keep them in step. 3.4.10 is the current 3.4.x. CI resolves its Ruby from .ruby-version, so this is the version the tests now run under.
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=3.4.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", "."]
|