File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,19 @@ RUN npm --quiet set progress=false \
40
40
&& echo "NPM version:" \
41
41
&& npm --version
42
42
43
+ # Install Python and required dependencies for the Python module
44
+ RUN apt-get update \
45
+ && apt-get install -y python3 python3-pip \
46
+ && pip3 install beautifulsoup4 markdownify
47
+
48
+ # Copy the Python script
49
+ COPY --chown=myuser conv_html_to_markdown.py ./
50
+
43
51
# Next, copy the remaining files and directories with the source code.
44
52
# Since we do this after NPM install, quick build will be really fast
45
53
# for most source file changes.
46
54
COPY --chown=myuser . ./
47
55
48
-
49
56
# Run the image. If you know you won't need headful browsers,
50
57
# you can remove the XVFB start script for a micro perf gain.
51
- CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent
58
+ CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent
You can’t perform that action at this time.
0 commit comments