Skip to content

Commit fa2b026

Browse files
committed
2 parents eecd8dc + 4af5339 commit fa2b026

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,19 @@ RUN npm --quiet set progress=false \
4040
&& echo "NPM version:" \
4141
&& npm --version
4242

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+
4351
# Next, copy the remaining files and directories with the source code.
4452
# Since we do this after NPM install, quick build will be really fast
4553
# for most source file changes.
4654
COPY --chown=myuser . ./
4755

48-
4956
# Run the image. If you know you won't need headful browsers,
5057
# 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 && python3 conv_html_to_markdown.py

0 commit comments

Comments
 (0)