diff --git a/.docker/Dockerfile b/.docker/Dockerfile index a5b0f4707..76b45e867 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -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"] diff --git a/.docker/Dockerfile.alpine b/.docker/Dockerfile.alpine index cdecf87ac..6a8040918 100644 --- a/.docker/Dockerfile.alpine +++ b/.docker/Dockerfile.alpine @@ -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"]