saucy/Dockerfile
2024-11-07 14:49:13 +00:00

18 lines
301 B
Docker

FROM ruby:3.3.5-alpine AS builder
RUN apk add build-base libpq-dev tzdata
WORKDIR /app
ADD Gemfile* ./
RUN bundle
ADD . ./
FROM ruby:3.3.5-alpine
RUN apk add libpq tzdata
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
COPY --from=builder /app /app
WORKDIR /app
CMD ["./entrypoint.sh"]