Stirling-PDF/Dockerfile

32 lines
784 B
Text
Raw Normal View History

# Build jbig2enc in a separate stage
2023-07-23 00:03:25 +01:00
FROM frooodle/stirling-pdf-base:beta4
2023-05-01 21:57:48 +01:00
2023-08-27 13:45:37 +01:00
ARG VERSION_TAG
ENV VERSION_TAG=$VERSION_TAG
2023-08-27 19:58:20 +01:00
ENV DOCKER_ENABLE_SECURITY=false
2023-08-27 13:45:37 +01:00
2023-05-01 21:57:48 +01:00
# Create scripts folder and copy local scripts
RUN mkdir /scripts
COPY ./scripts/* /scripts/
2023-06-29 23:59:15 +01:00
#Install fonts
RUN mkdir /usr/share/fonts/opentype/noto/
COPY src/main/resources/static/fonts/*.ttf /usr/share/fonts/opentype/noto/
COPY src/main/resources/static/fonts/*.otf /usr/share/fonts/opentype/noto/
RUN fc-cache -f -v
2023-08-27 17:02:12 +01:00
# Always copy the JAR
COPY build/libs/*.jar app.jar
# Expose the application port
2023-01-27 18:23:40 +00:00
EXPOSE 8080
# Set environment variables
2023-04-02 11:51:07 +01:00
ENV APP_HOME_NAME="Stirling PDF"
# Run the application
2023-05-01 22:31:30 +01:00
RUN chmod +x /scripts/init.sh
2023-05-01 21:57:48 +01:00
ENTRYPOINT ["/scripts/init.sh"]
CMD ["java", "-jar", "/app.jar"]