-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (34 loc) · 1.3 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
35
36
37
38
39
40
41
42
43
FROM aca0/engine-deps:master
COPY entrypoint.sh /entrypoint.sh
# Workaround for https://github.com/moby/moby/issues/15858
WORKDIR /home/aca-apps/ruby-engine-app
COPY .gitignore Gemfile README.md Rakefile config.ru ./
COPY .git ./.git/
COPY app/ ./app/
COPY bin/ ./bin/
COPY config/ ./config/
COPY db/ ./db/
COPY lib/ ./lib/
COPY log/ ./log/
COPY modules/ ./modules/
COPY public/ ./public/
COPY test/ ./test/
COPY tmp/ ./tmp/
RUN chmod a+x /entrypoint.sh && \
cp -f /usr/share/zoneinfo/Australia/Sydney /etc/localtime && \
echo "Australia/Sydney" > /etc/timezone
WORKDIR /home/aca-apps
RUN git clone --depth=1 --single-branch -b couchbase-orm https://github.com/QuayPay/coauth.git /home/aca-apps/coauth && \
git clone --depth=1 https://github.com/acaprojects/ruby-engine.git && \
git clone --depth=1 -b beta https://github.com/acaprojects/aca-device-modules.git && \
git clone --depth=1 https://github.com/aca-labs/omniauth-jwt
WORKDIR /home/aca-apps/ruby-engine-app
RUN bundle update
RUN apk del cmake && \
rm -rf /var/cache/apk/*
RUN echo "=====================================================" && \
cat Gemfile.lock && \
cp Gemfile.lock ../Gemfile.lock.from-docker-build
ENV RAILS_ENV=production DISABLE_SPRING=1 RAILS_LOG_TO_STDOUT=true
ENTRYPOINT ["/entrypoint.sh"]
CMD ["engine"]