-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
64 lines (48 loc) · 2.04 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM ruby:2.7.2
RUN apt-get update && apt-get install -y \
apt-transport-https \
curl
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
software-properties-common && \
curl -sL https://deb.nodesource.com/setup_14.x | sh -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
build-essential \
libpq-dev \
zlib1g-dev \
unattended-upgrades \
git \
tzdata \
nodejs && \
apt remove -y cmdtest && \
apt update -y && \
apt install -y yarn
RUN gem install bundler
RUN mkdir -p /src/gospeltoolbox/labs
WORKDIR /src/gospeltoolbox/labs
COPY Gemfile /src/gospeltoolbox/labs/Gemfile
COPY Gemfile.lock /src/gospeltoolbox/labs/Gemfile.lock
# Planning Center Engine
COPY engines/pco/Gemfile /src/gospeltoolbox/labs/engines/pco/Gemfile
COPY engines/pco/pco.gemspec /src/gospeltoolbox/labs/engines/pco/pco.gemspec
COPY engines/pco/lib/pco/version.rb /src/gospeltoolbox/labs/engines/pco/lib/pco/version.rb
# Set Planner engine
COPY engines/set_planner/Gemfile /src/gospeltoolbox/labs/engines/set_planner/Gemfile
COPY engines/set_planner/set_planner.gemspec /src/gospeltoolbox/labs/engines/set_planner/set_planner.gemspec
COPY engines/set_planner/lib/set_planner/version.rb /src/gospeltoolbox/labs/engines/set_planner/lib/set_planner/version.rb
# Set Live engine
COPY engines/set_live/Gemfile /src/gospeltoolbox/labs/engines/set_live/Gemfile
COPY engines/set_live/set_live.gemspec /src/gospeltoolbox/labs/engines/set_live/set_live.gemspec
COPY engines/set_live/lib/set_live/version.rb /src/gospeltoolbox/labs/engines/set_live/lib/set_live/version.rb
RUN bundle install
COPY package.json /src/gospeltoolbox/labs/package.json
COPY yarn.lock /src/gospeltoolbox/labs/yarn.lock
RUN yarn install
COPY . /src/gospeltoolbox/labs
ENV PORT 80
EXPOSE 80
ENTRYPOINT ["./docker/entrypoint.sh"]
CMD ["start"]