forked from Agricultural-Robotics-Bonn/coco-annotator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 640 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:10 as build-stage
WORKDIR /workspace/
COPY ./client /workspace/client
RUN npm install -g @vue/cli@3.3.0
RUN npm install -g @vue/cli-service@3.3.0
COPY ./client/package* /workspace/
RUN npm install
ENV NODE_PATH=/workspace/node_modules
WORKDIR /workspace/client
RUN npm run build
FROM jsbroks/coco-annotator:python-env
WORKDIR /workspace/
COPY ./backend/ /workspace/
COPY ./.git /workspace/.git
RUN python set_path.py
COPY --from=build-stage /workspace/client/dist /workspace/dist
ENV FLASK_ENV=production
ENV DEBUG=false
EXPOSE 5000
CMD gunicorn -c webserver/gunicorn_config.py webserver:app --no-sendfile --timeout 180