PDF -> PNG Convertor

* DockerFile Addditions
+ Helper Functions
This commit is contained in:
2022-05-10 02:32:55 +03:00
parent 31292b0d17
commit 7306bf607a
9 changed files with 608 additions and 27 deletions

View File

@@ -1,5 +1,7 @@
FROM node:18-buster
ENV DEBIAN_FRONTEND=noninteractive
# Create app directory
WORKDIR /app
@@ -9,5 +11,11 @@ COPY . .
# Install Requirements and build the app
RUN npm install && npm run build;
# Install required dependencies
RUN apt update && apt install -y \
poppler-utils poppler-data \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 5386
CMD [ "npm", "run", "start" ]