-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow specifying version for docker build
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
FROM ruby:3.2-alpine | ||
MAINTAINER Samuel Cochran <[email protected]> | ||
|
||
# Use --build-arg VERSION=... to override | ||
# or `rake docker VERSION=...` | ||
ARG VERSION=0.9.0 | ||
|
||
# sqlite3 aarch64 is broken on alpine, so use ruby: | ||
# https://github.com/sparklemotion/sqlite3-ruby/issues/372 | ||
RUN apk add --no-cache build-base sqlite-libs sqlite-dev && \ | ||
( [ "$(uname -m)" != "aarch64" ] || gem install sqlite3 --version="~> 1.3" --platform=ruby ) && \ | ||
gem install mailcatcher -v $VERSION && \ | ||
gem install mailcatcher -v "$VERSION" && \ | ||
apk del --rdepends --purge build-base sqlite-dev | ||
|
||
EXPOSE 1025 1080 | ||
|
This file contains 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