Slimmed the image
All checks were successful
Publish FaceAI Container / publish (push) Successful in 2m54s
All checks were successful
Publish FaceAI Container / publish (push) Successful in 2m54s
This commit is contained in:
parent
8ac86ffe36
commit
cf316c8563
8 changed files with 34 additions and 22 deletions
|
|
@ -15,9 +15,6 @@ COPY faceai/apps/processor/package.json apps/processor/package.json
|
|||
RUN npm install
|
||||
|
||||
COPY faceai/ .
|
||||
COPY bin/Face_Recognition_Unix /opt/face-recognition
|
||||
|
||||
RUN chmod +x /opt/face-recognition/face_matcher
|
||||
|
||||
RUN npm run build
|
||||
|
||||
|
|
@ -31,10 +28,8 @@ RUN apt-get update \
|
|||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app /app
|
||||
COPY --from=build /opt/face-recognition /opt/face-recognition
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV FACEAI_MATCHER_BINARY=/opt/face-recognition/face_matcher
|
||||
EXPOSE 3001
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue