forked from WycliffeAssociates/analyze-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 739 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
FROM debian:stretch-slim
# Install packages
RUN apt update && apt install -y \
curl \
gnupg \
wget
# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt install -y nodejs
# Clean up run image
RUN apt remove -y \
curl \
&& apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/* \
/tmp/*
# Install app
WORKDIR /root/app
COPY ["*.js", "./"]
COPY ["*.json", "./"]
RUN npm install
# Copy data
COPY ["data", "./data"]
# Setup working volume
VOLUME "/working"
# Set up entrypoint
COPY ["entrypoint.sh", "./"]
RUN chmod +x entrypoint.sh
ENTRYPOINT ./entrypoint.sh