This repository has been archived on 2023-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
jarvis-server/Dockerfile

25 lines
687 B
Docker
Raw Permalink Normal View History

2021-10-10 13:40:00 +02:00
FROM ubuntu:21.04
ENV DEBIAN_FRONTEND=noninteractive
2021-10-12 21:23:17 +02:00
ENV ENV_STATUS=${NODE_ENV:-production}
2021-10-10 13:40:00 +02:00
2021-10-12 21:23:17 +02:00
# For suport set local time zone.
RUN apt-get update -y && apt-get upgrade -y
2021-10-10 13:40:00 +02:00
2021-10-12 21:23:17 +02:00
WORKDIR /jarvis
2021-10-10 13:40:00 +02:00
2021-10-12 21:23:17 +02:00
RUN apt install python3.9 python3-pip python3.9-dev python3.9-distutils python3-fann2 libfann-dev swig git python3-levenshtein curl -y
2021-10-10 13:40:00 +02:00
2021-10-12 21:23:17 +02:00
RUN git clone --branch $(curl --silent "https://api.github.com/repos/m4th1eu/jarvis-server/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")') --progress --verbose https://github.com/M4TH1EU/jarvis-server.git .
2021-10-10 13:40:00 +02:00
RUN python3 -m pip install -r requirements.txt
2021-10-12 21:23:17 +02:00
RUN apt-get clean -y
2021-10-10 13:40:00 +02:00
EXPOSE 5000
2021-10-12 21:23:17 +02:00
COPY start.sh /jarvis/
RUN chmod +x start.sh
CMD "./start.sh"