-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (40 loc) · 1.21 KB
/
Dockerfile
File metadata and controls
44 lines (40 loc) · 1.21 KB
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
FROM node:6-alpine
RUN mkdir -p /usr/local/etc \
&& { \
echo 'install: --no-document'; \
echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc \
&& apk -U upgrade \
&& apk add -t build-dependencies \
git \
curl-dev \
wget \
ruby-dev \
zlib-dev \
build-base \
mariadb-dev \
&& apk add ruby ruby-io-console ruby-json ruby-bigdecimal zlib tzdata mariadb-client-libs \
&& gem install -N rails --version "$RAILS_VERSION" \
&& echo 'gem: --no-document' >> ~/.gemrc \
&& cp ~/.gemrc /etc/gemrc \
&& chmod uog+r /etc/gemrc \
&& npm install -g bower \
&& rm -rf ~/.gem \
&& git clone https://github.com/standardfile/ruby-server.git standardfile \
&& cd standardfile \
&& rm -rf .git/ \
&& gem install bigdecimal \
&& echo "bundle install" \
&& bundle config --global silence_root_warning 1 \
&& bundle install --system \
&& echo "bower install" \
&& bower install --allow-root \
&& apk del build-dependencies \
&& rm -rf /tmp/* /var/cache/apk/* /tmp/* /root/.gnupg /root/.cache/ \
&& echo "bundle precompile" \
&& bundle exec rake assets:precompile
EXPOSE 3000
COPY /docker /docker
RUN chmod +x /docker/entrypoint
ENTRYPOINT [ "/docker/entrypoint" ]
CMD [ "start" ]