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
|
2022-11-28 21:56:08 +01:00
|
|
|
|
2023-03-14 22:06:49 +01:00
|
|
|
# needed for whispercpp
|
|
|
|
RUN apk add --no-cache --upgrade ffmpeg gcc musl-dev linux-headers g++
|
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
|
|
|
|
2023-03-14 22:06:49 +01:00
|
|
|
# needed for padatious and adapt
|
|
|
|
RUN apk --no-cache add 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/
|
2023-03-26 13:44:41 +02:00
|
|
|
COPY start.py /jarvis/
|
2022-11-30 14:05:30 +01:00
|
|
|
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
2022-11-28 21:56:08 +01:00
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
2023-03-26 13:26:43 +02:00
|
|
|
ENTRYPOINT [ "python3", "/start.py"]
|