diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-17 22:11:38 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-17 22:11:38 +0100 |
commit | bd1b5e5b00dd61840f378cfe916c5729c87781fb (patch) | |
tree | 825c503bac0d46539e8db2776121c7508b83c4c9 /Dockerfile | |
parent | Updated default SQLite configuration file. (diff) | |
download | newspipe-bd1b5e5b00dd61840f378cfe916c5729c87781fb.tar.gz newspipe-bd1b5e5b00dd61840f378cfe916c5729c87781fb.tar.bz2 newspipe-bd1b5e5b00dd61840f378cfe916c5729c87781fb.zip |
added files for docker
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..5d11830c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,42 @@ +FROM python:3.8-alpine + +RUN apk update && \ + apk add \ + build-base \ + curl \ + git \ + libffi-dev \ + openssl-dev \ + libxml2-dev \ + libxslt-dev \ + libpq \ + postgresql-dev \ + sqlite-dev \ + sqlite \ + sqlite-libs \ + npm +RUN pip install poetry + +WORKDIR newspipe + +COPY newspipe newspipe/ +COPY instance instance/ +COPY manager.py . +COPY runserver.py . +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/ + +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 |