WIP: Article checker with svelte

This commit is contained in:
2022-08-31 12:09:21 +02:00
parent 0c7ff29068
commit 60c9e88c7b
22 changed files with 2656 additions and 7 deletions

25
news_check/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM node:18.8 as build-deps
WORKDIR /app
COPY client/package.json ./
COPY client/package-lock.json ./
COPY client/rollup.config.js ./
COPY client/src ./src/
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