mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-20 03:17:20 +00:00

* 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
26 lines
490 B
Docker
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" ]
|