Files
baclight/Dockerfile
T

37 lines
934 B
Docker
Raw Normal View History

2023-03-24 11:50:11 -07:00
# syntax=docker/dockerfile:1
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
2023-05-04 14:00:54 -07:00
ARG RUBY_VERSION=3.2.2
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
2021-12-03 11:25:29 -08:00
2023-03-24 10:16:44 -07:00
# OS Level Dependencies
2023-05-06 10:55:42 -07:00
RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
--mount=type=tmpfs,target=/var/log \
rm -f /etc/apt/apt.conf.d/docker-clean; \
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache; \
apt-get update -qq \
&& apt-get install -yq --no-install-recommends \
2021-12-03 11:25:29 -08:00
build-essential \
2022-03-15 20:59:43 -07:00
gnupg2 \
less \
git \
2021-12-03 11:25:29 -08:00
libpq-dev \
postgresql-client \
2023-01-02 21:00:05 -08:00
libvips \
2023-05-06 10:55:42 -07:00
curl
2021-09-26 14:32:21 -07:00
2022-03-15 20:59:43 -07:00
ENV LANG=C.UTF-8 \
BUNDLE_JOBS=4 \
BUNDLE_RETRY=3
2022-03-17 10:47:37 -07:00
RUN gem update --system && gem install bundler
2022-02-15 12:58:42 -08:00
2021-09-26 14:32:21 -07:00
WORKDIR /usr/src/app
ENTRYPOINT ["./bin/docker-entrypoint"]
2021-09-26 14:32:21 -07:00
EXPOSE 3000
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"]