-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 707 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 707 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
FROM ruby:2.4.0-alpine
RUN mkdir -p /root/brainstorm
WORKDIR /root/brainstorm
# ADD SOURCE CODE
COPY app app
COPY bin bin
COPY config config
COPY db db
COPY lib lib
COPY public public
COPY doc doc
COPY spec spec
ADD config.ru Rakefile Gemfile Gemfile.lock ./
# INSTALL DEPENDENCIES
RUN apk --update --upgrade add tzdata build-base mysql-dev && \
# Set timezone
TZ=Europe/Vienna && \
cp /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
# Install gems
echo 'gem: --no-rdoc --no-ri' >> /root/.gemrc && \
bundle install && \
# Cleanup
rm -rf /tmp/* /var/cache/apk/*
# START SERVER
EXPOSE 3000
CMD ["/root/brainstorm/bin/start.sh"]