forked from frvi/dockerfile-dashing
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
31 lines (25 loc) · 899 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
28
29
30
31
FROM ruby:3.3.5-alpine3.20
RUN apk add --update --no-cache build-base openssl-dev tzdata nodejs && \
gem update --system && \
gem install bundler && \
gem install smashing -v 1.3.6
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"]