forked from thredded/thredded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 879 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Need alpine:edge for Chromium 59
# TODO: Change "edge" to "3.7" once it's been released.
FROM alpine:edge
RUN apk add --no-cache \
# Runtime deps
ruby ruby-bundler ruby-bigdecimal ruby-io-console tzdata nodejs bash \
# Bundle install deps
build-base ruby-dev libc-dev libffi-dev linux-headers gmp-dev libressl-dev libxml2-dev libxslt-dev \
mariadb-dev postgresql-dev sqlite-dev \
# Testing deps
chromium chromium-chromedriver
ENV BUNDLE_SILENCE_ROOT_WARNING=1
ENV BUNDLE_PATH=/bundle
ENV DOCKER=1
ENV APP_HOME /thredded
WORKDIR $APP_HOME
RUN mkdir -p $APP_HOME
# Copy Gemfile and run bundle install first to allow for caching
COPY ./lib/thredded/version.rb $APP_HOME/lib/thredded/
COPY thredded.gemspec shared.gemfile Gemfile $APP_HOME/
RUN bundle --path=$BUNDLE_PATH
COPY Rakefile config.ru app/ bin/ config/ db/ lib/ script/ spec/ $APP_HOME/