Stirling-PDF/Dockerfile

23 lines
563 B
Text
Raw Normal View History

# Build jbig2enc in a separate stage
2023-05-21 23:25:34 +01:00
FROM frooodle/stirling-pdf-base:beta3
2023-05-01 21:57:48 +01:00
# Create scripts folder and copy local scripts
RUN mkdir /scripts
COPY ./scripts/* /scripts/
# Copy the application JAR file
2023-01-27 18:23:40 +00:00
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"
#ENV APP_HOME_DESCRIPTION="Personal PDF Website!"
#ENV APP_NAVBAR_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"]