remove lite package (#1012)
parent
255c018415
commit
8a6386ca73
8 changed files with 53 additions and 231 deletions
@ -1,63 +0,0 @@ |
||||
# use alpine |
||||
FROM alpine:3.19.1 |
||||
|
||||
ARG VERSION_TAG |
||||
|
||||
# Set Environment Variables |
||||
ENV DOCKER_ENABLE_SECURITY=false \ |
||||
HOME=/home/stirlingpdfuser \ |
||||
VERSION_TAG=$VERSION_TAG \ |
||||
JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -XX:MaxRAMPercentage=75" \ |
||||
PUID=1000 \ |
||||
PGID=1000 \ |
||||
UMASK=022 |
||||
|
||||
# Copy necessary files |
||||
COPY scripts/download-security-jar.sh /scripts/download-security-jar.sh |
||||
COPY scripts/init-without-ocr.sh /scripts/init-without-ocr.sh |
||||
COPY pipeline /pipeline |
||||
COPY src/main/resources/static/fonts/*.ttf /usr/share/fonts/opentype/noto |
||||
COPY src/main/resources/static/fonts/*.otf /usr/share/fonts/opentype/noto |
||||
COPY build/libs/*.jar app.jar |
||||
|
||||
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories && \ |
||||
echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && \ |
||||
echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" | tee -a /etc/apk/repositories && \ |
||||
apk add --no-cache \ |
||||
ca-certificates \ |
||||
tzdata \ |
||||
tini \ |
||||
bash \ |
||||
curl \ |
||||
gcc \ |
||||
openjdk17-jre \ |
||||
su-exec \ |
||||
shadow \ |
||||
# Doc conversion |
||||
libreoffice@testing \ |
||||
# python and pip |
||||
python3 && \ |
||||
wget https://bootstrap.pypa.io/get-pip.py -qO - | python3 - --break-system-packages --no-cache-dir --upgrade && \ |
||||
# uno unoconv and HTML |
||||
pip install --break-system-packages --no-cache-dir --upgrade unoconv WeasyPrint && \ |
||||
# Set up necessary directories and permissions |
||||
mkdir -p /configs /logs /customFiles /pipeline/watchedFolders /pipeline/finishedFolders && \ |
||||
# Set font cache and permissions |
||||
fc-cache -f -v && \ |
||||
chmod +x /scripts/*.sh && \ |
||||
# User permissions |
||||
addgroup -S stirlingpdfgroup && adduser -S stirlingpdfuser -G stirlingpdfgroup && \ |
||||
chown -R stirlingpdfuser:stirlingpdfgroup $HOME /scripts /usr/share/fonts/opentype/noto /configs /customFiles /pipeline && \ |
||||
chown stirlingpdfuser:stirlingpdfgroup /app.jar |
||||
|
||||
|
||||
# Set environment variables |
||||
ENV ENDPOINTS_GROUPS_TO_REMOVE=OpenCV,OCRmyPDF |
||||
ENV DOCKER_ENABLE_SECURITY=false |
||||
|
||||
EXPOSE 8080 |
||||
|
||||
# Run the application |
||||
|
||||
ENTRYPOINT ["tini", "--", "/scripts/init-without-ocr.sh"] |
||||
CMD ["java", "-Dfile.encoding=UTF-8", "-jar", "/app.jar"] |
@ -1,31 +0,0 @@ |
||||
version: '3.3' |
||||
services: |
||||
stirling-pdf: |
||||
container_name: Stirling-PDF-Lite-Security |
||||
image: frooodle/s-pdf:latest-lite |
||||
deploy: |
||||
resources: |
||||
limits: |
||||
memory: 2G |
||||
healthcheck: |
||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"] |
||||
interval: 5s |
||||
timeout: 10s |
||||
retries: 16 |
||||
ports: |
||||
- 8080:8080 |
||||
volumes: |
||||
- /stirling/latest/data:/usr/share/tessdata:rw |
||||
- /stirling/latest/config:/configs:rw |
||||
- /stirling/latest/logs:/logs:rw |
||||
environment: |
||||
DOCKER_ENABLE_SECURITY: "true" |
||||
SECURITY_ENABLELOGIN: "true" |
||||
SYSTEM_DEFAULTLOCALE: en-US |
||||
UI_APPNAME: Stirling-PDF-Lite |
||||
UI_HOMEDESCRIPTION: Demo site for Stirling-PDF-Lite Latest with Security |
||||
UI_APPNAMENAVBAR: Stirling-PDF-Lite Latest |
||||
SYSTEM_MAXFILESIZE: "100" |
||||
METRICS_ENABLED: "true" |
||||
SYSTEM_GOOGLEVISIBILITY: "true" |
||||
restart: on-failure:5 |
@ -1,30 +0,0 @@ |
||||
version: '3.3' |
||||
services: |
||||
stirling-pdf: |
||||
container_name: Stirling-PDF-Lite |
||||
image: frooodle/s-pdf:latest-lite |
||||
deploy: |
||||
resources: |
||||
limits: |
||||
memory: 2G |
||||
healthcheck: |
||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"] |
||||
interval: 5s |
||||
timeout: 10s |
||||
retries: 16 |
||||
ports: |
||||
- 8080:8080 |
||||
volumes: |
||||
- /stirling/latest/config:/configs:rw |
||||
- /stirling/latest/logs:/logs:rw |
||||
environment: |
||||
DOCKER_ENABLE_SECURITY: "false" |
||||
SECURITY_ENABLELOGIN: "false" |
||||
SYSTEM_DEFAULTLOCALE: en-US |
||||
UI_APPNAME: Stirling-PDF-Lite |
||||
UI_HOMEDESCRIPTION: Demo site for Stirling-PDF-Lite Latest |
||||
UI_APPNAMENAVBAR: Stirling-PDF-Lite Latest |
||||
SYSTEM_MAXFILESIZE: "100" |
||||
METRICS_ENABLED: "true" |
||||
SYSTEM_GOOGLEVISIBILITY: "true" |
||||
restart: on-failure:5 |
Loading…
Reference in new issue