Sha256: 9768a3b9d20e01c86c03a73b90ffd24f8a960ba4568eb58221eb3af8704f5350

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

FROM ruby:3.2.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 set --global without "development" \
    bundle install

RUN rm -rf /usr/local/bundle/cache && \
    rm -rf /usr/local/bundle/build_info && \
    rm -rf /usr/local/bundle/doc && \
    rm -rf /usr/local/bundle/doc && \
    find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/2.6/ -name "*.so" -delete && \
    find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/2.7/ -name "*.so" -delete && \
    find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/3.0/ -name "*.so" -delete && \
    find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/3.2/ -name "*.so" -delete && \
    find /usr/local/bundle/gems/ -name "*.c" -delete && \
    find /usr/local/bundle/gems/ -name "*.o" -delete && \
    find /usr/local/bundle/gems/ -name "spec" -exec rm -rv {} +

# 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:3.2.2-slim

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

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

COPY --from=builder /usr/local/bundle /usr/local/bundle

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

WORKDIR /app/rubypitaya/

RUN bundle config set --global without "development"

COPY . .

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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