Commit 
							
							·
						
						881a64f
	
1
								Parent(s):
							
							6b58709
								
Repaired Dockerfile hopefully finally
Browse files- Dockerfile +6 -10
- tools/example_cli_calls.txt +13 -0
    	
        Dockerfile
    CHANGED
    
    | @@ -91,17 +91,13 @@ RUN mkdir -p /tmp/gradio_tmp /tmp/tld /tmp/matplotlib_cache /tmp /var/tmp ${XDG_ | |
| 91 | 
             
                && chmod 1777 /tmp /var/tmp /tmp/gradio_tmp /tmp/tld /tmp/matplotlib_cache \
         | 
| 92 | 
             
                && chmod 700 ${XDG_CACHE_HOME} \
         | 
| 93 | 
             
                && mkdir -p ${APP_HOME}/.paddlex/official_models \
         | 
| 94 | 
            -
                && chown user:user \
         | 
| 95 | 
            -
                ${APP_HOME}/.paddlex/official_models \
         | 
| 96 | 
            -
                && chmod 755 \
         | 
| 97 | 
            -
                ${APP_HOME}/.paddlex/official_models \
         | 
| 98 | 
             
                && mkdir -p ${APP_HOME}/.local/share/spacy/data \
         | 
| 99 | 
            -
                && chown user:user \
         | 
| 100 | 
            -
                ${APP_HOME}/.local/share/spacy/data \
         | 
| 101 | 
            -
                &&  | 
| 102 | 
            -
                 | 
| 103 | 
            -
                mkdir -p /usr/share/tessdata && \
         | 
| 104 | 
            -
                chmod 755 /usr/share/tessdata
         | 
| 105 |  | 
| 106 | 
             
            # Copy installed packages from builder stage
         | 
| 107 | 
             
            COPY --from=builder /install /usr/local/lib/python3.11/site-packages/
         | 
|  | |
| 91 | 
             
                && chmod 1777 /tmp /var/tmp /tmp/gradio_tmp /tmp/tld /tmp/matplotlib_cache \
         | 
| 92 | 
             
                && chmod 700 ${XDG_CACHE_HOME} \
         | 
| 93 | 
             
                && mkdir -p ${APP_HOME}/.paddlex/official_models \
         | 
| 94 | 
            +
                && chown user:user ${APP_HOME}/.paddlex/official_models \
         | 
| 95 | 
            +
                && chmod 755 ${APP_HOME}/.paddlex/official_models \
         | 
|  | |
|  | |
| 96 | 
             
                && mkdir -p ${APP_HOME}/.local/share/spacy/data \
         | 
| 97 | 
            +
                && chown user:user ${APP_HOME}/.local/share/spacy/data \
         | 
| 98 | 
            +
                && chmod 755 ${APP_HOME}/.local/share/spacy/data \
         | 
| 99 | 
            +
                && mkdir -p /usr/share/tessdata \
         | 
| 100 | 
            +
                && chmod 755 /usr/share/tessdata
         | 
|  | |
|  | |
| 101 |  | 
| 102 | 
             
            # Copy installed packages from builder stage
         | 
| 103 | 
             
            COPY --from=builder /install /usr/local/lib/python3.11/site-packages/
         | 
    	
        tools/example_cli_calls.txt
    CHANGED
    
    | @@ -9,3 +9,16 @@ python cli_redact.py \ | |
| 9 | 
             
                --page_max 10 \
         | 
| 10 | 
             
                --allow_list "config/project_allowlist.csv"
         | 
| 11 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 9 | 
             
                --page_max 10 \
         | 
| 10 | 
             
                --allow_list "config/project_allowlist.csv"
         | 
| 11 |  | 
| 12 | 
            +
            python your_cli_script.py \
         | 
| 13 | 
            +
                --input_file "data/customer_data.xlsx" \
         | 
| 14 | 
            +
                --output_dir "output/anonymised_data/" \
         | 
| 15 | 
            +
                --anon_strat "redact" \
         | 
| 16 | 
            +
                --columns "Customer Name" "Email" \
         | 
| 17 | 
            +
                --excel_sheets "Q3-Data"
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            python your_cli_script.py \
         | 
| 20 | 
            +
                --input_file "legal_docs/legal_agreement.docx" \
         | 
| 21 | 
            +
                --output_dir "output/anonymised_docs/" \
         | 
| 22 | 
            +
                --anon_strat "encrypt" \
         | 
| 23 | 
            +
                --deny_list "config/codenames.csv" \
         | 
| 24 | 
            +
                --language "en"
         |