urltomarkdown/Dockerfile

23 lines
744 B
Docker
Raw Permalink Normal View History

2022-12-02 14:31:19 +00:00
FROM node:alpine
EXPOSE 1337
WORKDIR /var/www
COPY package.json /var/www/
RUN npm install
COPY html_table_to_markdown.js /var/www
COPY url_to_markdown_apple_dev_docs.js /var/www
COPY url_to_markdown_common_filters.js /var/www
2022-12-21 23:02:46 +00:00
COPY url_to_markdown_formatters.js /var/www
COPY url_to_markdown_processor.js /var/www
COPY url_to_markdown_readers.js /var/www
2022-12-02 14:31:19 +00:00
COPY index.js /var/www/
2022-12-23 12:03:25 +00:00
RUN mkdir -p /var/www/tests
COPY tests/url_to_markdown_apple_dev_docs.test.js /var/www/tests
COPY tests/url_to_markdown_common_filters.test.js /var/www/tests
COPY tests/url_to_markdown_formatters.test.js /var/www/tests
COPY tests/url_to_markdown_processor.test.js /var/www/tests
COPY tests/url_to_markdown_readers.test.js /var/www/tests
RUN npm test
2022-12-02 14:44:32 +00:00
ENV PORT=1337