2021-11-01 16:42:52 -06:00
|
|
|
FROM capsulecode/singlefile
|
|
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Install Python for main.py
|
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
2021-11-09 13:27:22 -07:00
|
|
|
RUN apk add --update --no-cache python3 python3-dev curl && ln -sf python3 /usr/bin/python
|
2021-11-01 16:42:52 -06:00
|
|
|
RUN python3 -m ensurepip
|
|
|
|
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
|
|
|
|
|
|
|
|
|
# Install the Python wrapper and it's requirements.
|
2021-11-10 10:11:02 -07:00
|
|
|
COPY docker/archive/requirements.txt /app/requirements.txt
|
2021-11-01 16:42:52 -06:00
|
|
|
RUN pip3 install -r /app/requirements.txt
|
2021-11-10 10:11:02 -07:00
|
|
|
COPY docker/archive /app
|
2021-11-01 16:42:52 -06:00
|
|
|
|
|
|
|
|
# Install Readability too
|
|
|
|
|
RUN npm install -g 'git+https://github.com/pirate/readability-extractor'
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "python3", "/app/main.py"]
|