-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 940 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM tercen/runtime-r44-minimal-plot:4.4.3-2 AS builder
# Operator-specific CRAN packages installed on top of the
# tercen/teRcenHttp/mtercen/teRcenApi/teRcen + Cairo stack baked
# into the base image.
#
# ragg provides PNG/JPEG raster devices without X11 (the alpine
# base has no X11). With ragg installed, ggplot2::ggsave(device="png")
# auto-picks ragg::agg_png. libtiff comes from the base image.
RUN installr -d ggplot2 ragg dplyr svglite jsonlite scales tidyr zip
FROM tercen/runtime-r44-minimal-plot:4.4.3-2
COPY --from=builder /usr/local/lib/R/library /usr/local/lib/R/library
COPY main.R utils.R utils_colors.R palettes.json operator.json /operator/
WORKDIR /operator
ENV TERCEN_SERVICE_URI=https://tercen.com
ENV OPENBLAS_NUM_THREADS=1
ENTRYPOINT ["R", "--no-save", "--no-restore", "--no-environ", "--slave", "-f", "main.R", "--args"]
CMD ["--taskId", "someid", "--serviceUri", "https://tercen.com", "--token", "sometoken"]