-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (23 loc) · 1.09 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
FROM ruby:2.6.3
ARG RAILS_MASTER_KEY
ENV APP_ROOT /usr/src/showks-form
ENV PIPELINE_ROOT /usr/src/showks-concourse-pipelines
ENV CANVAS_ROOT /usr/src/showks-canvas
WORKDIR $APP_ROOT
COPY Gemfile Gemfile.lock $APP_ROOT/
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash && \
apt-get update && \
apt-get install -y cmake jq mysql-client sqlite3 nodejs && \
npm install -g yarnpkg && \
bundle install
COPY . $APP_ROOT/
COPY app/assets/showks-concourse-pipelines/ $PIPELINE_ROOT/
COPY app/assets/showks-canvas/ $CANVAS_ROOT/
RUN curl -vL https://github.com/concourse/concourse/releases/download/`curl -s https://api.github.com/repos/concourse/concourse/releases/latest | jq -r .tag_name`/fly_linux_amd64 -o /usr/local/bin/fly &&\
chmod +x /usr/local/bin/fly
RUN curl -vL https://storage.googleapis.com/spinnaker-artifacts/spin/$(curl -s https://storage.googleapis.com/spinnaker-artifacts/spin/latest)/linux/amd64/spin -o /usr/local/bin/spin && \
chmod +x /usr/local/bin/spin
RUN env
RUN rake assets:precompile RAILS_ENV=production
EXPOSE 3000
CMD ["rails", "s", "-b", "0.0.0.0"]