-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (27 loc) · 1.24 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
FROM aeris22/cryptcheck AS builder
MAINTAINER Alexandre Flament <[email protected]>
RUN apk add --update bash make gcc g++ libxml2-dev yaml-dev zlib-dev
ENV PATH /usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH
ENV RBENV_ROOT /usr/local/rbenv
ENV RUBY_CONFIGURE_OPTS --disable-install-doc
WORKDIR /cryptcheck-backend/
COPY .ruby-version Gemfile /cryptcheck-backend/
RUN bundle config --local local.cryptcheck /cryptcheck && \
bundle config set without 'test development'
RUN bundle install
RUN bundle config set deployment 'true' && \
bundle install
COPY . /cryptcheck-backend/
FROM aeris22/cryptcheck AS server
MAINTAINER Alexandre Flament <[email protected]>
RUN apk add --no-cache --update libstdc++
ENV RAILS_ENV=production
ENV SINATRA_ACTIVESUPPORT_WARNING false
WORKDIR /cryptcheck-backend/
COPY --from=builder /cryptcheck-backend/ /cryptcheck-backend/
EXPOSE 7000
ENTRYPOINT ["/sbin/tini", "--", "/cryptcheck-backend/cryptcheck-backend"]
LABEL org.label-schema.usage="https://github.com/dalf/cryptcheck-backend" \
org.opencontainers.image.title="cryptcheck-backend" \
org.opencontainers.image.source="[email protected]:dalf/cryptcheck-backend.git" \
org.opencontainers.image.documentation="https://github.com/dalf/cryptcheck-backend"