forked from Stirling-Tools/Stirling-PDF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/gradle/io.spring.dependency-manag…
…ement-1.1.3
- Loading branch information
Showing
197 changed files
with
6,777 additions
and
2,989 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# License Agreement for Contributions | ||
By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under MPL 2.0 (Mozilla Public License Version 2.0) license. | ||
|
||
(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# License Agreement for Contributions | ||
By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under MPL 2.0 (Mozilla Public License Version 2.0) license. | ||
(This does not change the open-source nature of Stirling-PDF, simply moving from one license to another license) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,45 @@ | ||
# Build jbig2enc in a separate stage | ||
# Use the base image | ||
FROM frooodle/stirling-pdf-base:beta4 | ||
|
||
ARG VERSION_TAG | ||
ENV VERSION_TAG=$VERSION_TAG | ||
|
||
ENV DOCKER_ENABLE_SECURITY=false | ||
|
||
# Create scripts folder and copy local scripts | ||
RUN mkdir /scripts | ||
# Set Environment Variables | ||
ENV DOCKER_ENABLE_SECURITY=false \ | ||
HOME=/home/stirlingpdfuser \ | ||
VERSION_TAG=$VERSION_TAG | ||
# PUID=1000 \ | ||
# PGID=1000 \ | ||
# UMASK=022 \ | ||
|
||
|
||
# Create user and group | ||
##RUN groupadd -g $PGID stirlingpdfgroup && \ | ||
## useradd -u $PUID -g stirlingpdfgroup -s /bin/sh stirlingpdfuser && \ | ||
## mkdir -p $HOME && chown stirlingpdfuser:stirlingpdfgroup $HOME | ||
|
||
# Set up necessary directories and permissions | ||
RUN mkdir -p /scripts /usr/share/fonts/opentype/noto /usr/share/tesseract-ocr /configs /customFiles | ||
##&& \ | ||
## chown -R stirlingpdfuser:stirlingpdfgroup /scripts /usr/share/fonts/opentype/noto /usr/share/tesseract-ocr /configs /customFiles && \ | ||
## chown -R stirlingpdfuser:stirlingpdfgroup /usr/share/tesseract-ocr-original | ||
|
||
# Copy necessary files | ||
COPY ./scripts/* /scripts/ | ||
|
||
#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 | ||
|
||
# Always copy the JAR | ||
COPY build/libs/*.jar app.jar | ||
|
||
# Expose the application port | ||
EXPOSE 8080 | ||
# Set font cache and permissions | ||
RUN fc-cache -f -v && chmod +x /scripts/init.sh | ||
|
||
##&& \ | ||
## chown stirlingpdfuser:stirlingpdfgroup /app.jar && \ | ||
## chmod +x /scripts/init.sh | ||
|
||
# Set environment variables | ||
ENV APP_HOME_NAME="Stirling PDF" | ||
# Expose necessary ports | ||
EXPOSE 8080 | ||
|
||
# Run the application | ||
RUN chmod +x /scripts/init.sh | ||
# Set user and run command | ||
##USER stirlingpdfuser | ||
ENTRYPOINT ["/scripts/init.sh"] | ||
CMD ["java", "-jar", "/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.