-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·46 lines (33 loc) · 944 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·46 lines (33 loc) · 944 Bytes
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
FROM balenalib/rpi-raspbian
ENTRYPOINT []
# Process binaries
ADD mongodb_stretch_3_0_14_core.tar.gz /usr/bin/
ADD mongodb_stretch_3_0_14_tools.tar.gz /usr/bin/
RUN groupadd -r mongodb && useradd -r -g mongodb mongodb
RUN mkdir -p \
/data/db \
/data/configdb \
/var/log/mongodb \
&& chown -R mongodb:mongodb \
/usr/bin/mongo* \
/data/db \
/data/configdb \
/var/log/mongodb
# Define mountable directories
VOLUME /data/db /data/configdb
RUN apt-get update && \
apt-get -qy install curl \
build-essential python \
ca-certificates
WORKDIR /root/
COPY ./package.json ./package.json
RUN curl -O -k \
https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-armv7l.tar.xz
RUN tar -xvf node-*.tar.xz -C /usr/local \
--strip-components=1
RUN npm i
COPY ./app ./app
EXPOSE 3000
COPY startupscript.sh startupscript.sh
RUN ["chmod", "+x", "startupscript.sh"]
CMD ./startupscript.sh