-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (28 loc) · 1.02 KB
/
Dockerfile
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
FROM node:18
WORKDIR /usr/src/app
ENV DB_HOST dummy
ENV DB_USER dummy
ENV DB_PASSWORD dummy
ENV DB_PORT 3567 dummy
COPY package*.json ./
#---some useful tools for interactive usage---#
RUN apt-get update && \
apt-get install -y --no-install-recommends curl
#---install summon and summon-conjur---#
RUN curl -sSL https://raw.githubusercontent.com/cyberark/summon/master/install.sh \
| env TMPDIR=$(mktemp -d) bash && \
curl -sSL https://raw.githubusercontent.com/cyberark/summon-conjur/master/install.sh \
| env TMPDIR=$(mktemp -d) bash
# as per https://github.com/cyberark/summon#linux
# and https://github.com/cyberark/summon-conjur#install
ENV PATH="/usr/local/lib/summon:${PATH}"
#:wq
#COPY /usr/local/lib/summon /usr/local/lib/summon
#COPY /usr/local/bin/summon /usr/local/bin/summon
# RUN sleep 60
COPY ./secrets.yaml /opt/etc/secrets.yml
RUN npm install
COPY . .
EXPOSE 8080
CMD ["summon", "--provider", "summon-conjur", "-f", "/opt/etc/secrets.yml", "node", "server.js" ]
#CMD ["node", "server.js" ]