23 lines
744 B
Docker
Executable File
23 lines
744 B
Docker
Executable File
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
|
|
COPY url_to_markdown_formatters.js /var/www
|
|
COPY url_to_markdown_processor.js /var/www
|
|
COPY url_to_markdown_readers.js /var/www
|
|
COPY index.js /var/www/
|
|
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
|
|
ENV PORT=1337
|