pdfdraw/server/docker/Dockerfile
Joachim Bauch 30920f4e20
Switch to "node:17" as base image and install Python dependencies manually.
This saves about 220 MB in image size.
2021-12-07 17:20:16 +01:00

18 lines
302 B
Docker

FROM node:17
ADD . /app
ADD docker/config.js.docker /app/config.js
RUN apt-get update && \
apt-get install -y --no-install-recommends \
pdftk \
python3 \
python3-pip \
python3-pypdf2
WORKDIR /app
RUN pip install svglib
RUN npm install
CMD ["node", "server.js"]