2022-11-30 14:05:30 +01:00
|
|
|
FROM python:3.9-alpine
|
2022-11-28 21:56:08 +01:00
|
|
|
|
|
|
|
ENV ENV_STATUS=${NODE_ENV:-production}
|
|
|
|
|
2023-03-14 21:42:14 +01:00
|
|
|
RUN apk update && apk upgrade
|
|
|
|
RUN apk add --no-cache --upgrade ffmpeg
|
2022-11-28 21:56:08 +01:00
|
|
|
|
|
|
|
WORKDIR /jarvis
|
|
|
|
|
2022-11-30 14:05:30 +01:00
|
|
|
COPY ./jarvis /jarvis
|
2022-11-28 21:56:08 +01:00
|
|
|
|
2022-11-30 14:05:30 +01:00
|
|
|
# needed in older versions of jarvis-server
|
|
|
|
# RUN apk add build-base python3 python3-dev py3-pip py3-distutils-extra py3-fann2 fann-dev swig
|
2022-11-28 21:56:08 +01:00
|
|
|
|
2022-11-30 14:05:30 +01:00
|
|
|
COPY requirements.txt /jarvis/
|
|
|
|
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
2022-11-28 21:56:08 +01:00
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
2022-11-30 14:00:43 +01:00
|
|
|
ENTRYPOINT [ "python3", "/jarvis/start.py"]
|