2024-03-28 11:35:38 +00:00
|
|
|
FROM ruby:3.1.2-alpine AS builder
|
2022-07-16 10:27:56 +00:00
|
|
|
|
|
|
|
RUN apk add build-base libpq-dev tzdata
|
|
|
|
WORKDIR /app
|
|
|
|
ADD Gemfile* ./
|
|
|
|
RUN bundle
|
|
|
|
ADD . ./
|
|
|
|
|
2024-03-28 11:35:38 +00:00
|
|
|
|
|
|
|
FROM ruby:3.1.2-alpine
|
|
|
|
|
|
|
|
RUN apk add libpq tzdata
|
|
|
|
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
|
|
|
|
COPY --from=builder /app /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2022-07-16 10:27:56 +00:00
|
|
|
CMD ["./entrypoint.sh"]
|