reduced slack functionality, higher ease of use. Database migration wip

This commit is contained in:
2022-09-05 16:29:19 +02:00
parent 60c9e88c7b
commit 2e65828bbb
35 changed files with 789 additions and 998 deletions

View File

@@ -1,25 +1,25 @@
FROM node:18.8 as build-deps
WORKDIR /app
WORKDIR /app/client
COPY client/package.json ./
COPY client/package-lock.json ./
COPY client/rollup.config.js ./
COPY client/src ./src/
RUN npm install
RUN npm run build
FROM python:latest
ENV TZ Europe/Zurich
RUN apt-get update && apt-get install -y postgresql
RUN mkdir -p /app/news_check
COPY requirements.txt /app/requirements.txt
RUN python3 -m pip install -r /app/requirements.txt
COPY --from=build-deps /app/public /app/news_check/public
COPY app /app/news_check
WORKDIR /app/news_check
CMD gunicorn app:app -w 1 --threads 2 -b 0.0.0.0:80
COPY requirements.txt requirements.txt
RUN python3 -m pip install -r requirements.txt
COPY client/public/index.html client/public/index.html
COPY --from=build-deps /app/client/public client/public/
COPY server server/
WORKDIR /app/news_check/server
# CMD python app.py