Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 20, 2023
1 parent 6411e38 commit 2e857b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions paperless_ngx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0

# Add custom scripts
RUN sed -i "2a source /ha_entrypoint.sh" /sbin/docker-entrypoint.sh && \
sed -i 's=/./=source /=g' /ha_entrypoint.sh
#&& \
# Correct pre-encoded paths
# for file in $(grep -sril "/usr/src/paperless/" /sbin /usr); do sed -i "s=/usr/src/paperless/=/config/=g" "$file"; done
Expand Down Expand Up @@ -68,6 +65,10 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh"
RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh

# Add custom scripts
RUN sed -i "2a source /ha_entrypoint.sh" /sbin/docker-entrypoint.sh && \
sed -i 's=/./=source /=g' /ha_entrypoint.sh

#ENTRYPOINT [ "/usr/bin/env" ]
#CMD [ "/ha_entrypoint.sh" ]
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand Down

0 comments on commit 2e857b0

Please sign in to comment.