-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (38 loc) · 1.25 KB
/
Dockerfile
File metadata and controls
54 lines (38 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM alpine:3.21 AS zoekt-index
RUN apk --no-cache add go git
ENV CGO_ENABLED=0
RUN go install github.com/sourcegraph/zoekt/cmd/zoekt-index@latest
FROM alpine:3.21 AS ctags
RUN apk --no-cache add wget
RUN wget https://raw.githubusercontent.com/sourcegraph/zoekt/refs/heads/main/install-ctags-alpine.sh && \
chmod +x install-ctags-alpine.sh && \
./install-ctags-alpine.sh
FROM alpine:3.21
LABEL maintainer "Mike Smith <[email protected]>"
COPY --from=ctags /tmp/ctags-*/* /usr/local/bin/
COPY --from=zoekt-index /root/go/bin/* /usr/local/bin/
ENV TZ="Europe/Berlin"
## install required system libraries
RUN apk --no-cache add \
gcc \
g++ \
make \
bash \
tzdata \
libgit2-dev \
curl-dev \
libxml2-dev \
openssl-dev \
R \
R-dev
## install required R packages
RUN Rscript -e "chooseCRANmirror(graphics = FALSE, ind = 1)" \
-e "install.packages(c('dplyr', 'tidyRSS', 'gert', 'jsonlite', 'lubridate'), quiet = TRUE)"
RUN set -x ; \
addgroup -g 101 -S nginx ; \
adduser -u 101 -D -S -G nginx nginx && exit 0 ; exit 1
USER nginx
COPY *.R /var/R/
WORKDIR /var/R
#ENTRYPOINT ["Rscript", "check_rss_feed.R", "--npkgs=15"]
ENTRYPOINT ["Rscript", "check_rss_feed.R"]