2018-07-11 12:21:33 +02:00
|
|
|
FROM node:10.7.0
|
2017-02-21 07:54:42 +01:00
|
|
|
|
2017-06-23 10:23:28 +02:00
|
|
|
RUN mkdir -p /harbor_resources
|
|
|
|
RUN mkdir -p /harbor_src
|
2017-02-21 07:54:42 +01:00
|
|
|
|
2017-06-23 10:23:28 +02:00
|
|
|
COPY src/ui_ng/package.json /harbor_resources
|
2017-03-20 11:51:20 +01:00
|
|
|
COPY make/dev/nodeclarity/entrypoint.sh /
|
2017-02-21 07:54:42 +01:00
|
|
|
|
2017-12-25 03:33:52 +01:00
|
|
|
# Install Chrome
|
2018-07-11 12:21:33 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
apt-transport-https \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
gnupg \
|
|
|
|
hicolor-icon-theme \
|
|
|
|
libcanberra-gtk* \
|
|
|
|
libgl1-mesa-dri \
|
|
|
|
libgl1-mesa-glx \
|
|
|
|
libpango1.0-0 \
|
|
|
|
libpulse0 \
|
|
|
|
libv4l-0 \
|
|
|
|
--no-install-recommends
|
|
|
|
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
|
|
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
|
|
|
|
RUN rm google-chrome-stable_current_amd64.deb
|
2017-12-25 03:33:52 +01:00
|
|
|
|
|
|
|
# Install npm package
|
2017-06-23 10:23:28 +02:00
|
|
|
WORKDIR /harbor_resources
|
2017-02-21 07:54:42 +01:00
|
|
|
|
2018-07-11 12:21:33 +02:00
|
|
|
RUN npm __proxy__ install && \
|
2017-03-20 11:51:20 +01:00
|
|
|
chmod u+x /entrypoint.sh
|
2017-06-23 10:23:28 +02:00
|
|
|
VOLUME ["/harbor_src"]
|