auto-labeler / Dockerfile
dillonlaird's picture
initial commit
6723494
raw
history blame
457 Bytes
FROM node:slim
WORKDIR /app
COPY . .
# python setup
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv ffmpeg libsm6 libxext6 pkg-config libpixman-1-dev libcairo2-dev libpango1.0-dev libgif-dev
RUN python3 -m venv .venv
RUN /app/.venv/bin/pip3 install --no-cache --upgrade -r /app/requirements.txt
# nextjs setup
WORKDIR /app/instance-labeler
RUN yarn install && yarn build
WORKDIR /app
CMD ["/app/.venv/bin/python3", "main.py"]