Sha256: 9c504caa7a1e8ee123e085726c316a03dbcf2532b06a6ec59bee9f7886d63a7a

Contents?: true

Size: 1.15 KB

Versions: 15

Compression:

Stored size: 1.15 KB

Contents

FROM ruby:2.7.2-slim as builder

RUN apt update && \ 
    apt install -y --no-install-recommends \ 
    curl \
    libpq-dev \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

COPY Gemfile Gemfile.lock ./

RUN bundle config --global jobs 4 && \
    bundle config --global set clean 'true' \
    bundle config --global git.allow_insecure true && \
    bundle config --global without "development test" && \
    bundle install

# RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

FROM ruby:2.7.2-slim

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

RUN apt update && \ 
    apt install -y --no-install-recommends \ 
    netcat \
    libpq5 \
    && rm -rf /var/lib/apt/lists/*

COPY --from=builder /usr/local/bundle /usr/local/bundle
RUN rm -rf /usr/local/bundle/cache
RUN rm -rf /usr/local/bundle/build_info
RUN rm -rf /usr/local/bundle/doc

# COPY --from=builder /kubectl /usr/local/bin/kubectl
# RUN chmod +x /usr/local/bin/kubectl

WORKDIR /app/rubypitaya/

COPY . .

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rubypitaya-2.27.1 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.27.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.26.3 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.26.2 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.26.1 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.26.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.25.1 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.25.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.24.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.23.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.22.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.21.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.20.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.19.1 ./lib/rubypitaya/app-template/docker/prod/Dockerfile
rubypitaya-2.19.0 ./lib/rubypitaya/app-template/docker/prod/Dockerfile