File size: 606 Bytes
41649f8 8a70543 86e830e 2948225 41649f8 ade2333 2b7a002 ade2333 f3f7193 6734097 41649f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM python:3.9
WORKDIR /fastapi/app
RUN apt-get update && apt-get install -y \
nginx \
ffmpeg \
espeak-ng \
&& rm -rf /var/lib/apt/lists/*
COPY ./requirements.txt /fastapi/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /fastapi/requirements.txt
COPY ./app /fastapi/app
COPY ./default /etc/nginx/sites-available
RUN chown -R 1000 /var/log/nginx/ /var/lib/nginx/ /run/ /fastapi/app/
RUN mkdir -p /.config
RUN chown -R 1000 /.config
RUN chmod 777 /.config
RUN mkdir -p /.cache
RUN chown -R 1000 /.cache
RUN chmod 777 /.cache
EXPOSE 7860
CMD ["/bin/sh", "/fastapi/app/start.sh"]
|