-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
32 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 |
---|---|---|
|
@@ -4,8 +4,8 @@ WORKDIR /workspace/ | |
COPY ./client /workspace/client | ||
|
||
RUN npm install -g --quiet \ | ||
@vue/[email protected] \ | ||
@vue/[email protected] | ||
@vue/[email protected] \ | ||
@vue/[email protected] | ||
|
||
COPY ./client/package* /workspace/ | ||
|
||
|
@@ -15,34 +15,11 @@ ENV NODE_PATH=/workspace/node_modules | |
WORKDIR /workspace/client | ||
RUN npm run build | ||
|
||
# Setup flask | ||
|
||
FROM python:3.6 | ||
FROM jsbroks/coco-annotator:python-env | ||
|
||
WORKDIR /workspace/ | ||
|
||
# Install python package dependices | ||
COPY ./backend/ /workspace/ | ||
RUN pip install -r requirements.txt && \ | ||
pip install gunicorn[eventlet]==19.9.0 && \ | ||
pip install pycocotools | ||
|
||
# Install maskrcnn | ||
RUN git clone --single-branch --depth 1 https://github.com/matterport/Mask_RCNN.git /tmp/maskrcnn && \ | ||
cd /tmp/maskrcnn && \ | ||
pip install -r requirements.txt && \ | ||
python3 setup.py install | ||
|
||
# Install DEXTR | ||
RUN git clone --single --depth 1 https://github.com/jsbroks/dextr-keras.git /tmp/dextr && \ | ||
cd /tmp/dextr && \ | ||
pip install -r requirements.txt && \ | ||
python setup.py install | ||
|
||
COPY ./.git /workspace/.git | ||
|
||
# Create server | ||
WORKDIR /workspace/ | ||
RUN python set_path.py | ||
|
||
COPY --from=build-stage /workspace/client/dist /workspace/dist | ||
|
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,25 @@ | ||
# Backend environment docker image | ||
FROM python:3.6 | ||
|
||
WORKDIR /workspace/ | ||
|
||
# Copy backend | ||
COPY ./backend/requirements.txt /workspace/ | ||
|
||
# Install python package dependices | ||
RUN pip install -r requirements.txt && \ | ||
pip install gunicorn[eventlet]==19.9.0 && \ | ||
pip install pycocotools | ||
|
||
# Install maskrcnn | ||
RUN git clone --single-branch --depth 1 https://github.com/matterport/Mask_RCNN.git /tmp/maskrcnn && \ | ||
cd /tmp/maskrcnn && \ | ||
pip install -r requirements.txt && \ | ||
python3 setup.py install | ||
|
||
# Install DEXTR | ||
RUN git clone --single --depth 1 https://github.com/jsbroks/dextr-keras.git /tmp/dextr && \ | ||
cd /tmp/dextr && \ | ||
pip install -r requirements.txt && \ | ||
python setup.py install | ||
|
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,16 @@ | ||
FROM jsbroks/coco-annotator:python-env | ||
|
||
WORKDIR /workspace/ | ||
|
||
# Install python package dependices | ||
COPY ./backend/ /workspace/ | ||
COPY ./.git /workspace/.git | ||
RUN python set_path.py | ||
|
||
ENV FLASK_ENV=development | ||
ENV DEBUG=true | ||
|
||
EXPOSE 5000 | ||
CMD gunicorn -c webserver/gunicorn_config.py webserver:app --no-sendfile | ||
|
||
|
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,12 +1,9 @@ | ||
FROM python:3.6 | ||
FROM jsbroks/coco-annotator:python-env | ||
|
||
WORKDIR /workspace/ | ||
|
||
# Install python package dependices | ||
COPY ./backend/ /workspace/ | ||
COPY ./.git /workspace/.git | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
EXPOSE 5555 | ||
CMD celery -A workers worker -l info |