-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build client as part of docker image
- Loading branch information
Showing
6 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
/client | ||
/.github | ||
node_modules | ||
/client/ts/**/*.js | ||
*.map | ||
*.pyc | ||
.idea | ||
__pycache__ | ||
/model_api/data | ||
/model_api/processing/.ipynb_checkpoints | ||
tmp.txt | ||
/client_dist | ||
/client/dist | ||
/client/.cache-loader | ||
/data | ||
/docs | ||
|
||
# extras | ||
/docs | ||
/.github | ||
/.circleci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
*.css.map | ||
node_modules | ||
/client/ts/**/*.js | ||
*.map | ||
*.pyc | ||
.idea | ||
__pycache__ | ||
model_api/data | ||
*.pyc | ||
model_api/processing/.ipynb_checkpoints | ||
/model_api/data | ||
/model_api/processing/.ipynb_checkpoints | ||
tmp.txt | ||
client_dist | ||
client/dist | ||
client/.cache-loader | ||
/data | ||
/client_dist | ||
/client/dist | ||
/client/.cache-loader | ||
/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
FROM continuumio/miniconda3:4.4.10 | ||
|
||
RUN conda update --yes -n base conda | ||
RUN conda update --yes -n base conda &&\ | ||
conda clean --all --yes | ||
|
||
ADD ./environment.yml /tmp/ | ||
RUN conda env create -f /tmp/environment.yml && conda clean --all | ||
RUN conda env create -f /tmp/environment.yml &&\ | ||
conda clean --all --yes &&\ | ||
rm -rf /boot/.cache/pip ~/.cache/pip | ||
|
||
#RUN conda create --yes --name s2sv python=3.6 h5py numpy scikit-learn flask | ||
#RUN conda install --name s2sv --yes -c conda-forge connexion python-annoy | ||
#RUN conda install --name s2sv --yes -c pytorch pytorch==0.3.1 faiss-cpu | ||
|
||
WORKDIR /tmp | ||
ADD ./setup_onmt_custom.sh /tmp/ | ||
RUN /bin/bash /tmp/setup_onmt_custom.sh && rm -rf /tmp | ||
RUN /bin/bash /tmp/setup_onmt_custom.sh &&\ | ||
rm -rf /tmp /boot/.cache/pip ~/.cache/pip | ||
|
||
ENTRYPOINT [ "/bin/bash", "-c" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Build client | ||
conda install --name s2sv --yes -c conda-forge nodejs | ||
source activate s2sv | ||
cd client | ||
npm install | ||
npm run build | ||
cd .. |