diff --git a/Dockerfile b/Dockerfile index 26e9e63..b9f5f1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,15 @@ FROM python:3.10-slim WORKDIR /dmibot/ +# web app dependencies & build +RUN apt-get update && apt-get install -y curl +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs + COPY requirements.txt . RUN pip3 install -r requirements.txt COPY . . +RUN mkdir -p webapp/dist; cd webapp/; npm install; npx parcel build index.html; cd .. + ENTRYPOINT ["python3", "main.py"] diff --git a/webapp/drive/static/style.css b/webapp/drive/static/style.css index c417973..e5ea93f 100644 --- a/webapp/drive/static/style.css +++ b/webapp/drive/static/style.css @@ -102,6 +102,7 @@ body { .drive-file.clicked { opacity: 50%; cursor: progress; + } .hidden {