-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 707 Bytes
/
Dockerfile
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
# Stage 1 - Build the SPA web app
FROM node:14 as build-deps
WORKDIR /usr/src/app/
COPY ./src/ui/package.json ./src/ui/package-lock.json ./
RUN npm i -g npm
RUN npm i
COPY ./src/ui/ ./
RUN npm run build
# Stage 2 - Build the pipeline
FROM darcyai/darcyai-coral:dev
RUN apt-get update -y \
&& apt-get install -y libzbar0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade darcyai==2.0.1
RUN python3 -m pip install --upgrade flask_cors
RUN python3 -m pip install --upgrade pyzbar==0.1.8
WORKDIR /src
COPY --from=build-deps /usr/src/app/build ./ui/build/
COPY src/pipeline ./pipeline/
COPY src/main.py ./main.py
ENTRYPOINT ["python3", "-u", "./main.py"]