mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-02-20 19:50:33 +09:00
18 lines
368 B
Plaintext
18 lines
368 B
Plaintext
# syntax = docker/dockerfile:1
|
|
|
|
# Make sure it matches the Ruby version in .ruby-version and Gemfile
|
|
ARG RUBY_VERSION=3.4.7
|
|
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", "."]
|