2016-11-16 02:25:06 +00:00
|
|
|
FROM node:6.9.1
|
2016-01-20 21:45:51 +00:00
|
|
|
|
|
|
|
ENV WEBUI_DIR /src/webui
|
|
|
|
RUN mkdir -p $WEBUI_DIR
|
|
|
|
|
2017-02-02 09:58:42 +00:00
|
|
|
RUN apt-get -yq update \
|
|
|
|
&& apt-get -yq --no-install-suggests --no-install-recommends --force-yes install apt-transport-https \
|
|
|
|
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
|
|
|
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
2017-05-10 07:33:41 +00:00
|
|
|
&& apt-get -yq update && apt-get -yq --no-install-suggests --no-install-recommends --force-yes install yarn \
|
|
|
|
&& rm -fr /var/lib/apt/lists/
|
2017-02-02 09:58:42 +00:00
|
|
|
|
2016-01-20 21:45:51 +00:00
|
|
|
COPY package.json $WEBUI_DIR/
|
2016-11-16 02:25:06 +00:00
|
|
|
COPY yarn.lock $WEBUI_DIR/
|
2016-01-20 21:45:51 +00:00
|
|
|
|
|
|
|
WORKDIR $WEBUI_DIR
|
2016-11-16 02:25:06 +00:00
|
|
|
RUN yarn install
|
2016-01-20 21:45:51 +00:00
|
|
|
|
|
|
|
COPY . $WEBUI_DIR/
|
|
|
|
|
2018-04-27 11:12:04 +00:00
|
|
|
EXPOSE 8080
|