forked from digitalocean/docker-shipit-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (35 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
50 lines (35 loc) · 1.12 KB
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
FROM ruby:2.6.4-alpine3.10@sha256:f3eeb2b71ae7c004ca57ddb12618fde07dece33e6a0f0a50b53f03b83be76174
RUN apk add --no-cache --update \
git \
nodejs \
postgresql-client \
tzdata \
yarn \
shared-mime-info
RUN apk add --no-cache --virtual .build-deps \
build-base \
postgresql-dev \
sqlite-dev
ENV CI=true
ENV SHIPIT_VERSION=v0.33.0
RUN git config --global user.email "you@example.com"
RUN git config --global user.name "Your Name"
RUN gem install mimemagic
RUN gem install rails -v 6.0 --no-document
RUN gem install minitest --no-document
WORKDIR /usr/src
RUN rails _6.0_ new shipit \
--skip-action-cable --skip-turbolinks --skip-action-mailer --skip-active-storage \
-m https://raw.githubusercontent.com/Shopify/shipit-engine/${SHIPIT_VERSION}/template.rb
RUN apk del .build-deps
RUN apk add bash
WORKDIR /usr/src/shipit
COPY config/ config/
ENV RAILS_ENV=production \
RAILS_LOG_TO_STDOUT=enabled \
RAILS_SERVE_STATIC_FILES=enabled
COPY entrypoint.sh .
ENTRYPOINT ["./entrypoint.sh"]
RUN bundle exec rake assets:precompile
EXPOSE 3000
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]