mirror of
https://github.com/JarvyJ/HomeIntent.git
synced 2022-02-11 01:01:05 +03:00
* Update docker-publish.yml * started script to generate dockerfiles * autogenerated the dockerfiles * new and improved dockerignore closes #122
31 lines
571 B
Docker
31 lines
571 B
Docker
|
|
### NOTE: THIS FILE IS AUTOGENERATED FROM generate_dockerfiles.py ###
|
|
|
|
|
|
FROM python:3.7
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
WORKDIR /usr/src/app/docs
|
|
|
|
COPY docs/requirements.txt ./
|
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
COPY docs .
|
|
RUN mkdocs build
|
|
|
|
|
|
|
|
FROM node:lts
|
|
WORKDIR /usr/src/app/ui/frontend
|
|
|
|
COPY ui/frontend/package.json ui/frontend/package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY ui/frontend .
|
|
RUN npm run build
|
|
|
|
|
|
FROM scratch
|
|
COPY --from=0 /usr/src/app/docs/site /docs/site
|
|
COPY --from=1 /usr/src/app/ui/frontend/build /ui/frontend/build
|