forked from visibilityspots/dockerfile-smashing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 1.2 KB
/
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
28
29
30
31
32
33
34
FROM ruby:2.3.1
RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get update && \
apt-get -y install nodejs && \
apt-get -y clean
RUN gem update --system
RUN gem install bundler smashing
RUN echo "I see you David!" > hellodavid.txt
RUN mkdir /smashing && \
smashing new smashing && \
cd /smashing && \
bundle && \
ln -s /smashing/dashboards /dashboards && \
ln -s /smashing/jobs /jobs && \
ln -s /smashing/assets /assets && \
ln -s /smashing/lib /lib-smashing && \
ln -s /smashing/public /public && \
ln -s /smashing/widgets /widgets && \
mkdir /smashing/config && \
mv /smashing/config.ru /smashing/config/config.ru && \
ln -s /smashing/config/config.ru /smashing/config.ru && \
ln -s /smashing/config /config
COPY run.sh /
VOLUME ["/dashboards", "/jobs", "/lib-smashing", "/config", "/public", "/widgets", "/assets"]
ENV PORT 3030
EXPOSE $PORT
WORKDIR /smashing
CMD ["/run.sh"]