aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: b43d1a2ea09c3c25a8fbd790eeb7250133b2ead3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.8-alpine

RUN apk update && \
  apk add \
  build-base \
  curl \
  git \
  libffi-dev \
  openssl-dev \
  libxml2-dev \
  libxslt-dev \
  libpq \
  postgresql-client \
  postgresql-dev \
  npm

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 wait-for-postgres.sh .

RUN chmod +x ./wait-for-postgres.sh

RUN npm install
COPY node_modules newspipe/static/npm_components

RUN pip install poetry
RUN poetry install
bgstack15