diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 18:12:57 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-20 18:12:57 +0100 |
commit | 966f40d591d6fc95068fc22c5b283b9ab54c3d8e (patch) | |
tree | 91d949d700e58bf89917f5e0cbb34ea97e54bea2 /Dockerfile | |
parent | added files for docker (diff) | |
download | newspipe-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-- | Dockerfile | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -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 |