forked from avvo/junit_visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (33 loc) · 1018 Bytes
/
Dockerfile
File metadata and controls
46 lines (33 loc) · 1018 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM avvo/ruby-rails-mysql
MAINTAINER Jake Sparling <jsparling@avvo.com>
ENV APP_HOME /srv/junit_visualizer/current
RUN apk update && \
apk upgrade && \
apk add nodejs && \
apk add build-base && \
rm -rf /var/cache/apk/*
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
RUN mkdir -p $APP_HOME/vendor/bundle
ADD Gemfile* $APP_HOME/
ADD vendor/cache $APP_HOME/vendor/cache
RUN bundle install --path vendor/bundle --local --deployment --without development test
ADD . $APP_HOME
ENV RAILS_ENV production
ENV WORKERS 8
ENV MEMCACHED_HOSTS memcached:11211
ENV DB_HOST mysql
ENV DB_PORT 3306
ENV DB_USER junit_visualizer
ENV DB_PASS thisisnotarealpassword
ENV AWS_BUCKET changeme
ENV AWS_REGION chnageme
ENV S3_ACCESS_KEY_ID changeme
ENV S3_SECRET_ACCESS_KEY changeme
ARG SOURCE_COMMIT=0
RUN echo $SOURCE_COMMIT
ENV COMMIT_HASH $SOURCE_COMMIT
RUN DOCKER_BUILD=true bin/rake assets:precompile
EXPOSE 3000
ENTRYPOINT ["bin/unicorn"]
CMD ["-c", "config/unicorn.rb"]