-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.r2g
executable file
·44 lines (28 loc) · 1.19 KB
/
Dockerfile.r2g
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
ARG base_image
FROM $base_image
ENV ores_bash_utils "https://raw.githubusercontent.com/oresoftware/npm.bash.utils"
ENV r2g_tarballs_base_url="https://raw.githubusercontent.com/oresoftware/tarballs"
ENV FORCE_COLOR=1
ENV docker_r2g_in_container=yes
ENV MY_DOCKER_R2G_SEARCH_ROOT="/home/node"
RUN curl -sS -o- "$ores_bash_utils/master/assets/install-basics.sh" | bash
RUN sudo echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER node
ENV USER="node"
ENV HOME="/home/node"
RUN mkdir -p /home/node/.docker_r2g_cache
RUN mkdir -p /home/node/app/node_modules
WORKDIR /home/node/app
RUN sudo chmod -R 777 /home/node
RUN curl -sS -o- "$ores_bash_utils/master/assets/run-non-root-chown.sh" | bash
RUN curl -sS -o- "$ores_bash_utils/master/assets/run-npm-config-settings.sh" | bash
ARG CACHEBUST=1
#RUN npm i -g "@oresoftware/read.json"
#RUN npm i -g "@oresoftware/r2g.docker"
#RUN npm i -g "@oresoftware/r2g"
RUN npm i -g "$r2g_tarballs_base_url/master/tgz/oresoftware/read.json.tgz?$(date +%s)"
RUN npm i -g "$r2g_tarballs_base_url/master/tgz/oresoftware/r2g.docker.tgz?$(date +%s)"
COPY . .
RUN sudo chmod -R 777 /home/node
RUN npm i -s -g "."
ENTRYPOINT dkr2g run --allow-unknown $dkr2g_run_args