1
mirror of https://github.com/home-assistant/frontend synced 2024-07-13 09:10:49 +02:00
ha-frontend/Dockerfile
Paulus Schoutsen 417d8e7ed8 Consolidate frontend (#468)
* Consolidate frontend

* Remove no longer needed cd

* Get Roboto from bower_components

* Remove external dependency from update_mdi.py

* Copy leaflet assets on build time

* Tweak Dockerfile

* Create Python package

* Set zip_safe to False

* Update build scripts

* Version bump to 20171021.0

* Fix service worker

* Version bump to 20171021.2

* Update docker ignore

* Tweak Dockerfile thanks to Adam
2017-10-24 19:36:30 -07:00

26 lines
490 B
Docker

FROM node:8.2.1-alpine
# install yarn
ENV PATH /root/.yarn/bin:$PATH
RUN apk update \
&& apk add curl bash binutils tar git python3 \
&& rm -rf /var/cache/apk/* \
&& /bin/bash \
&& touch ~/.bashrc \
&& curl -o- -L https://yarnpkg.com/install.sh | bash
RUN mkdir -p /frontend
WORKDIR /frontend
ENV NODE_ENV production
COPY package.json ./
RUN yarn
COPY bower.json ./
RUN ./node_modules/.bin/bower install --allow-root
COPY . .
CMD [ "/bin/bash", "./script/build_frontend" ]