Files
bank-fraud-baf-lakehouse/Dockerfile
Rob Wiederstein 85bc257e7b
All checks were successful
Deploy Lakehouse Docs / build-and-deploy (push) Successful in 8m44s
Lint & Format Check / Link Check (push) Successful in 3s
Lint & Format Check / Format Check (styler) (push) Successful in 14s
R Package Tests / test (push) Successful in 53s
Rename package from baflakehouse to bankfraud
- DESCRIPTION: Package name and URL updated to /bank-fraud
- R/baflakehouse-package.R → R/bankfraud-package.R
- _pkgdown.yml: url and reference alias updated
- deploy.yaml: TARGET_DIR updated to /var/www/docs/bank-fraud/
- deploy/baflakehouse.caddy: deleted (stale, superseded by rsync workflow)
- tests and README updated

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 09:38:54 -05:00

49 lines
1.4 KiB
Docker

FROM rocker/verse:4.5.2
# System dependencies for arrow, lightgbm, and ggplot2 (ragg/textshaping)
# Quarto is pre-installed in rocker/verse
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libglpk-dev \
libfontconfig1-dev \
libfreetype6-dev \
libharfbuzz-dev \
libfribidi-dev \
libpng-dev \
libjpeg-dev \
libtiff-dev \
libzstd-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy renv infrastructure first so package restore is a cached layer.
# Changes to source code below will not invalidate this layer.
COPY renv.lock .Rprofile ./
COPY renv/activate.R renv/settings.json renv/
RUN Rscript -e "renv::restore(prompt = FALSE)"
# Copy the full package source
COPY . .
# Install the local package into the renv library, then re-run restore so
# any package that renv skipped by finding it in the rocker system library
# (e.g. styler) ends up in the project library where renv can actually see it.
RUN Rscript -e "renv::install('.')" && \
Rscript -e "renv::restore(prompt = FALSE)"
# Non-secret default — override with --env at runtime if needed
ENV BAF_BUCKET=lake
# Secrets and endpoint are injected at runtime — never baked into the image:
# docker run \
# --env BAF_ENDPOINT=172.19.0.1:9100 \
# --env BAF_KEY=... \
# --env BAF_SECRET=... \
# bankfraud
CMD ["Rscript", "deploy.R"]