Skip to content

Commit

Permalink
Remove .git from Docker images nad fix link to alternate services
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Nov 1, 2024
1 parent d303b42 commit c8c53d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ COPY --from=builder /usr/local/bin/ /usr/local/bin/

COPY --from=builder --chown=app:app /app /app

RUN rm -rf /app/.git && \
ln -s /app/misc/webservice.py /app/webservice.py && \
ln -s /app/misc/watcher.py /app/watcher.py

ENV PATH="/app/.venv/bin:${PATH}"

ENTRYPOINT ["/app/.venv/bin/ocrmypdf"]
Expand Down
4 changes: 4 additions & 0 deletions .docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ WORKDIR /app

COPY --from=builder --chown=app:app /app /app

RUN rm -rf /app/.git && \
ln -s /app/misc/webservice.py /app/webservice.py && \
ln -s /app/misc/watcher.py /app/watcher.py

ENV PATH="/app/.venv/bin:${PATH}"

ENTRYPOINT ["/app/.venv/bin/ocrmypdf"]

0 comments on commit c8c53d3

Please sign in to comment.