18 lines
406 B
Docker
18 lines
406 B
Docker
|
|
||
|
FROM python:3.11-slim
|
||
|
|
||
|
# set the working directory
|
||
|
WORKDIR /app
|
||
|
RUN mkdir /app/uploads
|
||
|
RUN mkdir /app/split
|
||
|
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"]
|