ff541be7a0
* WIP #990 initial commit of dockerfiles * WIP #990 Everything but CMD working * Added deepforge config, added torch install * Updated the comment describing the image * WIP Added cuda worker docker image * WIP #990 Added wget and blob configuration * WIP #990 Fixed worker connection dockerfile * WIP #990 Fixed docker image issues * WIP #990 Reuse the node_modules directory * WIP #990 Reuse node modules in docker image * WIP #990 Added entrypoint and cmd files * WIP #990 Updated the standalone image * WIP #990 Removed standalone docker file This should be replaced with something like docker compose instead * WIP #990 Added deployment instructions * WIP #990 Added additional comments about volumes, gpu
25 linhas
682 B
Docker
25 linhas
682 B
Docker
# Dockerfile for running the server itself
|
|
FROM node:6.10.1
|
|
MAINTAINER Brian Broll <brian.broll@gmail.com>
|
|
|
|
RUN echo '{"allow_root": true}' > /root/.bowerrc && mkdir -p /root/.config/configstore/ && \
|
|
echo '{}' > /root/.config/configstore/bower-github.json
|
|
|
|
RUN mkdir /deepforge
|
|
ADD . /deepforge
|
|
WORKDIR /deepforge
|
|
|
|
RUN cd $(npm root -g)/npm \
|
|
&& npm install fs-extra \
|
|
&& sed -i -e s/graceful-fs/fs-extra/ -e s/fs.rename/fs.move/ ./lib/utils/rename.js
|
|
|
|
RUN ln -s /deepforge/bin/deepforge /usr/local/bin
|
|
|
|
EXPOSE 8888
|
|
|
|
# Set up the data storage
|
|
RUN deepforge config blob.dir /data/blob && \
|
|
deepforge config mongo.dir /data/db
|
|
|
|
CMD ["deepforge", "start", "--server"]
|