|
@@ -8,6 +8,10 @@ WORKDIR /usr/src/app
|
|
|
# Server port
|
|
|
EXPOSE 5000
|
|
|
|
|
|
+# Install python
|
|
|
+RUN apt install -y python3-pip
|
|
|
+RUN apt install build-essential libssl-dev libffi-dev python3-dev
|
|
|
+
|
|
|
# Install dependencies and generate documentation
|
|
|
RUN yarn install && yarn doc
|
|
|
|
|
@@ -16,7 +20,7 @@ CMD if [ "$SERVE_CLIENT" == "true" ] ; \
|
|
|
then \
|
|
|
([ -f ./experimentConfig.js ] && \
|
|
|
echo "Experiment configuration found" \
|
|
|
- || (echo "Experiment configuration not found, copying default" && cp experimentConfig.default.js experimentConfig.js)) && \
|
|
|
+ || (echo "Experiment configuration not found, copying default" && cp experimentConfig.default.js experimentConfig.js && mkdir results && echo "[]" >> results/match_extracts_probs.json)) && \
|
|
|
NODE_ENV=test yarn test && \
|
|
|
yarn run app:build && \
|
|
|
yarn run server:start ; \
|