2023-10-11 17:51:35 +00:00
|
|
|
|
|
|
|
FROM python:3.11-slim
|
|
|
|
|
|
|
|
# set the working directory
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir /app/uploads
|
|
|
|
RUN mkdir /app/split
|
2023-12-06 21:26:14 +00:00
|
|
|
RUN mkdir /app/merge
|
2023-10-11 17:51:35 +00:00
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
# install dependencies
|
|
|
|
COPY ./requirements.txt /app
|
|
|
|
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
|
|
|
|
# copy the scripts to the folder
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
CMD ["bash", "init.sh"]
|