forked from UniversalDevicesInc/polyglot-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
29 lines (23 loc) · 849 Bytes
/
dockerfile
File metadata and controls
29 lines (23 loc) · 849 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
FROM node:12-alpine
EXPOSE 3000
EXPOSE 3001
WORKDIR /opt/polyglot-v2/
RUN apk add --no-cache linux-headers build-base && \
apk add --no-cache python3 py3-lxml py3-pip bash git ca-certificates wget tzdata openssl && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
rm -r /root/.cache && \
cd /opt && \
git clone --depth=1 --single-branch --branch master https://github.com/UniversalDevicesInc/polyglot-v2.git && \
cd /opt/polyglot-v2
COPY package.json /opt
COPY package.json /opt/polyglot-v2
COPY package-lock.json /opt
COPY package-lock.json /opt/polyglot-v2
VOLUME /root/.polyglot
VOLUME /usr/lib/python3.8/site-packages
# Install & Run Polyglot
CMD npm install
CMD npm start