2023-06-01 16:01:24 +02:00
|
|
|
FROM python:3.11-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
|
2023-06-01 16:04:40 +02:00
|
|
|
# RUN apk add --no-cache --upgrade ffmpeg gcc musl-dev linux-headers g++
|
2022-11-28 21:56:08 +01:00
|
|
|
WORKDIR /jarvis
|
|
|
|
|
2023-06-01 16:04:40 +02:00
|
|
|
COPY ./src /src
|
2022-11-28 21:56:08 +01:00
|
|
|
|
2023-03-14 22:06:49 +01:00
|
|
|
# needed for padatious and adapt
|
2023-06-01 16:04:40 +02:00
|
|
|
# RUN apk --no-cache add py3-fann2 fann-dev swig
|
2022-11-28 21:56:08 +01:00
|
|
|
|
2023-06-01 16:04:40 +02:00
|
|
|
COPY requirements.txt /src/
|
|
|
|
COPY run.py /src/
|
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"]
|