PDF -> PNG Convertor
* DockerFile Addditions + Helper Functions
This commit is contained in:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user