Sha256: 91a422792b330cc34b60f479400dbf987f71466ef9bf71e23d1a20205e1413d6

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

FROM ruby:2.6.6 as builder

WORKDIR /app/rubypitaya/

COPY Gemfile Gemfile.lock ./

RUN bundle install

COPY . .

FROM ruby:2.6.6-slim

RUN apt update && apt install -y docker.io postgresql-client --no-install-recommends
RUN rm -rf /var/lib/apt/lists/*

COPY --from=builder /usr/local/etc /usr/local/etc
COPY --from=builder /usr/local/bundle /usr/local/bundle
COPY --from=builder /usr/local/bin/ruby /usr/local/bin/ruby
COPY --from=builder /usr/local/lib/ruby/gems/2.6.0 /usr/local/lib/ruby/gems/2.6.0

COPY --from=builder /app/rubypitaya /app/rubypitaya

WORKDIR /app/rubypitaya/

RUN rm -rf vendor/

ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

ENTRYPOINT ["./docker/entrypoint.sh"]

CMD ["bundle", "exec", "rubypitaya"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubypitaya-1.1.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile