File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 1
1
FROM phusion/baseimage:jammy-1.0.1
2
2
3
- WORKDIR /opt/app
4
-
5
- COPY . /opt/app
6
-
7
- WORKDIR /opt/app/fact_extractor
8
-
3
+ # Install python and create a virtualenv
9
4
ARG USER=root
10
5
ARG DEBIAN_FRONTEND=noninteractive
11
-
12
6
RUN install_clean python3.11 python3.11-dev python3.11-venv gcc
7
+ RUN python3.11 -m venv /venv
8
+ ENV PATH=/venv/bin:$PATH
13
9
14
- RUN python3.11 -m venv venv
15
-
16
- RUN . venv/bin/activate && install/pre_install.sh
17
-
18
- RUN . venv/bin/activate && venv/bin/python3.11 install.py
10
+ # Copy and install fact_extractor
11
+ COPY . /opt/app
12
+ WORKDIR /opt/app/fact_extractor
13
+ RUN . /venv/bin/activate && install/pre_install.sh
14
+ RUN . / venv/bin/activate && / venv/bin/python3.11 install.py
19
15
20
- ENV PATH=/opt/app/fact_extractor/venv/bin:$PATH
21
16
22
17
ENTRYPOINT ["./docker_extraction.py" ]
You can’t perform that action at this time.
0 commit comments