FROM clarinpl/python:3.8

WORKDIR /home/worker
COPY ./src ./src
COPY ./requirements.txt .
COPY ./main.py .
#COPY ./models/autocorrect ./models/autocorrect
COPY ./entrypoint.sh .

RUN apt update && apt install -y g++ gdb

#RUN git clone https://github.com/facebookresearch/fastText.git && \
#    cd fastText && \
#    python3.6 -m pip install . && \
#    cd .. && \
#    rm -rf fastText

RUN python -m pip install -r requirements.txt

RUN ["chmod", "+x", "./entrypoint.sh"]

CMD ["./entrypoint.sh"]