Files
baclight/development3.Dockerfile
T

46 lines
1.1 KiB
Docker
Raw Normal View History

2025-11-24 08:22:44 -05:00
# ----- Build Stage -----
# Using a specific Ruby version (e.g., 3.3) for stability
2026-03-03 22:53:21 -05:00
ARG RUBY_VERSION=3.4.8
2026-03-27 08:04:37 -04:00
FROM docker.io/library/ruby:3.4.8-slim as base
2025-11-24 08:22:44 -05:00
# Install production system dependencies
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; \
apt-get update -qq \
&& apt-get install -yq --no-install-recommends \
build-essential \
less \
git \
2026-04-20 12:12:52 -04:00
cron \
2026-05-06 13:28:16 -04:00
curl \
2026-04-20 12:12:52 -04:00
dos2unix \
2025-11-24 08:22:44 -05:00
tdsodbc \
freetds-dev \
libvips \
libpq-dev \
libyaml-dev
2025-11-24 08:22:44 -05:00
ENV LANG=C.UTF-8 \
BUNDLE_JOBS=4 \
BUNDLE_RETRY=3
WORKDIR /usr/src/app
RUN gem install foreman
2026-04-20 12:12:52 -04:00
# COPY bin/development-entrypoint.sh /bin/development-entrypoint.sh
# RUN chown root:root bin/development-entrypoint.sh && chmod +x bin/development-entrypoint.sh
2026-03-27 08:04:37 -04:00
2026-04-20 12:12:52 -04:00
ENTRYPOINT ["./bin/development-entrypoint"]
2025-11-24 08:22:44 -05:00
2026-05-06 13:28:16 -04:00
# ENTRYPOINT ["./bin/cron-entrypoint"]
2025-11-24 08:22:44 -05:00
# Expose the application port
EXPOSE 3002
# Set the default command to run the Rails server
2026-05-06 13:28:16 -04:00
CMD ["./bin/dev"]