docker stuff

This commit is contained in:
Mathieu B 2022-11-30 14:05:30 +01:00
parent 257687abb2
commit 654ef0e76a
2 changed files with 9 additions and 34 deletions

View File

@ -1,20 +1,20 @@
FROM debian:bullseye FROM python:3.9-alpine
ENV DEBIAN_FRONTEND=noninteractive
ENV ENV_STATUS=${NODE_ENV:-production} ENV ENV_STATUS=${NODE_ENV:-production}
# For suport set local time zone. # needed in older versions of jarvis-server
RUN apt-get update -y && apt-get upgrade -y # RUN apk update && apk upgrade
# RUN apk add --no-cache --upgrade grep
WORKDIR /jarvis 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 COPY ./jarvis /jarvis
RUN git clone --progress --verbose https://github.com/M4TH1EU/jarvis-server-v2.git . # 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
RUN python3 -m pip install -r requirements.txt COPY requirements.txt /jarvis/
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN apt-get clean -y
EXPOSE 5000 EXPOSE 5000

View File

@ -1,25 +0,0 @@
# 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"]