AO3-7340 Production-ized Dockerfile#5836
Draft
brianjaustin wants to merge 6 commits into
Draft
Conversation
05e307d to
57689fc
Compare
zz9pzza
approved these changes
May 31, 2026
| # Install runtime dependencies, e.g. for downloads generation and online database migrations | ||
| RUN apt-get update -qq && \ | ||
| apt-get install --no-install-recommends -y calibre libmariadb3 percona-toolkit shared-mime-info zip && \ | ||
| rm -rf /var/lib/apt/lists /var/cache/apt/archives |
Contributor
There was a problem hiding this comment.
I would prefer
apt autoremove && apt clean
| # Install packages needed to build gems | ||
| RUN apt-get update -qq && \ | ||
| apt-get install --no-install-recommends -y build-essential git libmariadb-dev libyaml-dev pkg-config && \ | ||
| rm -rf /var/lib/apt/lists /var/cache/apt/archives |
| RUN apt-get update -qq && \ | ||
| apt-get install --no-install-recommends -y curl libjemalloc2 libvips sqlite3 && \ | ||
| ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so && \ | ||
| rm -rf /var/lib/apt/lists /var/cache/apt/archives |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
Issue
https://otwarchive.atlassian.net/browse/AO3-7340
Purpose
Creates a new dockerfile that can be used to run in the archive in production. As part of this, I also removed old migrations to avoid dependency issues with Departure -- we shouldn't need it now that MariaDB has online schema migrations
Credit
What name and pronouns should we use to credit you in the Archive of Our Own's Release Notes?
Brian Austin (they/he)