aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-20 18:12:57 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-20 18:12:57 +0100
commit966f40d591d6fc95068fc22c5b283b9ab54c3d8e (patch)
tree91d949d700e58bf89917f5e0cbb34ea97e54bea2 /Dockerfile
parentadded files for docker (diff)
downloadnewspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.tar.gz
newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.tar.bz2
newspipe-966f40d591d6fc95068fc22c5b283b9ab54c3d8e.zip
Added Dockerfile, images: python3.8-alpine and postgres.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 4 insertions, 11 deletions
diff --git a/Dockerfile b/Dockerfile
index 5d11830c..e8e39ec5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,10 +10,8 @@ RUN apk update && \
libxml2-dev \
libxslt-dev \
libpq \
+ postgresql-client \
postgresql-dev \
- sqlite-dev \
- sqlite \
- sqlite-libs \
npm
RUN pip install poetry
@@ -27,16 +25,11 @@ COPY package.json .
COPY package-lock.json .
COPY pyproject.toml .
COPY poetry.lock .
-COPY instance/sqlite.py .
-COPY instance/sqlite.py instance/
-COPY instance/sqlite.py newspipe/
+COPY wait-for-postgres.sh .
+
+RUN chmod +x ./wait-for-postgres.sh
RUN npm install
COPY node_modules newspipe/static/npm_components
-ENV Newspipe_CONFIG sqlite.py
-
RUN poetry install
-RUN poetry run pybabel compile -d newspipe/translations
-RUN poetry run ./manager.py db_create
-RUN poetry run ./manager.py create_admin admin password
bgstack15