Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 9905981

Browse files
author
Brian Sadler
committed
Add Docker support (to be used with development repo)
1 parent b5bd120 commit 9905981

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# We currently use Ruby 1.9.3 in prod, but bundle install is failing with that in dev.
2+
# We also can't use the newest ruby because it broke support for the syck gem in v2.2.
3+
FROM ruby:2.1
4+
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
5+
6+
# The rubycas Gemfile / gemspec doesn't specify a rails version since we use Apache Passenger modrails to run it in prod.
7+
# Need this installed in the container to run the dev version.
8+
#RUN gem install rails -v 3.2
9+
10+
RUN mkdir /app
11+
WORKDIR /app
12+
ADD Gemfile /app/Gemfile
13+
ADD rubycas-server.gemspec /app/rubycas-server.gemspec
14+
RUN bundle install
15+
16+
# Do this after bundle install b/c if we do it before then changing any files
17+
# causes bundle install to be invalidated and run again on the next build
18+
ADD . /app
19+
20+

0 commit comments

Comments
 (0)