Skip to content

Commit ef359fe

Browse files
Compact dockerfile (#1202)
feat(docker): default to multi-stage Dockerfile and enable production mode The `add_dockerfile_with_renv_*` function now: - generates a multi-stage Dockerfile by default (`single_file = FALSE`) - sets `golem.app.prod = TRUE` by default (`set_golem.app.prod = FALSE`) BREAKING CHANGE: - Default of `single_file` changed from `TRUE` to `FALSE` - Default of `set_golem.app.prod` changed from `FALSE` to `TRUE` * Update DESCRIPTION bump version
1 parent 00fc0e2 commit ef359fe

File tree

5 files changed

+246
-276
lines changed

5 files changed

+246
-276
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: golem
22
Title: A Framework for Robust Shiny Applications
3-
Version: 0.5.1.9012
3+
Version: 0.5.1.9013
44
Authors@R: c(
55
person("Colin", "Fay", , "contact@colinfay.me", role = c("cre", "aut"),
66
comment = c(ORCID = "0000-0001-7343-1846")),
@@ -42,7 +42,7 @@ Suggests:
4242
crayon,
4343
desc,
4444
devtools,
45-
dockerfiler (>= 0.2.0),
45+
dockerfiler (>= 0.2.5),
4646
fs,
4747
httpuv,
4848
knitr,

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
33
# golem 0.5.1 to 0.6.0
44

5+
6+
7+
## New features / user-visible changes
8+
9+
- The `add_dockerfile_with_renv_*` function now generates a multi-stage Dockerfile by default (use `single_file = FALSE` to retain the previous behavior).
10+
- The `add_dockerfile_with_renv_*` function now creates a Dockerfile that sets `golem.app.prod = TRUE` by default (use `set_golem.app.prod = FALSE` to retain the previous behavior).
11+
512
## Breaking change
613

714
- The `get_current_config()` has been rework in two ways: (1) it nows either check the `GOLEM_CONFIG_PATH` env var or the default path (inst/golem-config.yml). `{golem}` no longer tries to guess non standard paths, and does a hard fail if the file doesn't exist, (2) the function no longer copy the `config` files from the skeleton if ever the files are not there (@ilyaZar, @LDSamson, #1178)

0 commit comments

Comments
 (0)