teelinsan commited on
Commit
e71a1bc
·
verified ·
1 Parent(s): 7270518
Files changed (1) hide show
  1. Dockerfile +10 -12
Dockerfile CHANGED
@@ -1,12 +1,13 @@
1
  FROM ubuntu:22.04
2
 
3
  RUN apt-get update && apt-get install -y \
4
- python3 \
5
- python3-pip \
6
- wget \
7
- unzip \
8
- imagemagick \
9
- libmagickwand-dev
 
10
 
11
  # Create a new directory and set it as the working directory
12
  WORKDIR /code
@@ -18,17 +19,14 @@ RUN cp /code/policy.xml /etc/ImageMagick-6/policy.xml
18
  RUN useradd -m -u 1000 user
19
  USER user
20
  ENV HOME=/home/user \
21
- PATH=/home/user/.local/bin:$PATH
22
 
23
  WORKDIR $HOME/app
24
 
25
  COPY --chown=user . $HOME/app
26
 
27
 
28
- RUN wget https://github.com/acl-org/aclpubcheck/archive/refs/heads/main.zip
29
- RUN unzip main.zip
30
- RUN cd aclpubcheck-main
31
- RUN pip install -e ./aclpubcheck-main
32
 
33
 
34
  RUN pip install gradio==3.48.0
@@ -36,4 +34,4 @@ RUN pip install gradio==3.48.0
36
 
37
  EXPOSE 7860
38
 
39
- CMD ["python3", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM ubuntu:22.04
2
 
3
  RUN apt-get update && apt-get install -y \
4
+ python3 \
5
+ python3-pip \
6
+ wget \
7
+ unzip \
8
+ imagemagick \
9
+ libmagickwand-dev \
10
+ git
11
 
12
  # Create a new directory and set it as the working directory
13
  WORKDIR /code
 
19
  RUN useradd -m -u 1000 user
20
  USER user
21
  ENV HOME=/home/user \
22
+ PATH=/home/user/.local/bin:$PATH
23
 
24
  WORKDIR $HOME/app
25
 
26
  COPY --chown=user . $HOME/app
27
 
28
 
29
+ RUN pip install git+https://github.com/acl-org/aclpubcheck
 
 
 
30
 
31
 
32
  RUN pip install gradio==3.48.0
 
34
 
35
  EXPOSE 7860
36
 
37
+ CMD ["python3", "app.py", "--host", "0.0.0.0", "--port", "7860"]