Spaces:
Running
Running
Download Dockerfile from teelinsan/aclpubcheck: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/teelinsan/aclpubcheck/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/teelinsan/aclpubcheck/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/teelinsan/aclpubcheck/resolve/main/Dockerfile
665 Bytes
| FROM ubuntu:22.04 | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| wget \ | |
| unzip \ | |
| imagemagick \ | |
| libmagickwand-dev \ | |
| git | |
| # Create a new directory and set it as the working directory | |
| WORKDIR /code | |
| COPY ./app.py /code/app.py | |
| COPY ./policy.xml /code/policy.xml | |
| RUN cp /code/policy.xml /etc/ImageMagick-6/policy.xml | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| RUN pip install git+https://github.com/acl-org/aclpubcheck | |
| RUN pip install gradio==3.48.0 | |
| EXPOSE 7860 | |
| CMD ["python3", "app.py", "--host", "0.0.0.0", "--port", "7860"] |