docker stuff
This commit is contained in:
parent
0e0c34fa04
commit
257687abb2
@ -1,4 +1,4 @@
|
||||
FROM ubuntu:21.04
|
||||
FROM debian:bullseye
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV ENV_STATUS=${NODE_ENV:-production}
|
||||
@ -10,7 +10,7 @@ WORKDIR /jarvis
|
||||
|
||||
RUN apt install python3.9 python3-pip python3.9-dev python3.9-distutils python3-fann2 libfann-dev swig git python3-levenshtein curl -y
|
||||
|
||||
RUN git clone --branch $(curl --silent "https://api.github.com/repos/m4th1eu/jarvis-server-v2/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")') --progress --verbose https://github.com/M4TH1EU/jarvis-server-v2.git .
|
||||
RUN git clone --progress --verbose https://github.com/M4TH1EU/jarvis-server-v2.git .
|
||||
|
||||
RUN python3 -m pip install -r requirements.txt
|
||||
|
||||
@ -18,4 +18,4 @@ RUN apt-get clean -y
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD [ "python3", "start.py"]
|
||||
ENTRYPOINT [ "python3", "/jarvis/start.py"]
|
25
Dockerfile.alpine
Normal file
25
Dockerfile.alpine
Normal file
@ -0,0 +1,25 @@
|
||||
# ALPINE VERSION OF THE DOCKER FILE, NOT WORKING ATM.
|
||||
# TRYING TO SEE IF THERE IS A DIFFERENCE USING AN UBUNTU IMAGE OR AN ALPINE
|
||||
|
||||
FROM python:3.9-alpine
|
||||
|
||||
ENV ENV_STATUS=${NODE_ENV:-production}
|
||||
|
||||
# For suport set local time zone.
|
||||
RUN apk update && apk upgrade
|
||||
|
||||
RUN apk add --no-cache --upgrade grep
|
||||
|
||||
WORKDIR /jarvis
|
||||
|
||||
COPY ./jarvis /jarvis
|
||||
|
||||
# RUN apk add build-base python3 python3-dev py3-pip py3-distutils-extra py3-fann2 fann-dev swig
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
RUN apk cache clean
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENTRYPOINT [ "python3", "/jarvis/start.py"]
|
0
jarvis/__init__.py
Normal file
0
jarvis/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user