Spaces:
Running
Running
File size: 881 Bytes
e63103b f0f180f 2bdce13 fbd71a3 e63103b 307b3b4 e63103b 4cec855 e63103b 0018f4b e63103b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
FROM python:3.12
# Instalação necessária para converter arquivos .doc
RUN apt-get update && apt-get install -y antiword
# Copy the entrypoint script and make it executable
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
COPY --chown=user . ./app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
# RUN python3 -m venv /app/.venv
# RUN source .venv/bin/activate
# RUN .venv/bin/activate
# ENV PATH="/.venv/bin:$PATH"
RUN python manage.py collectstatic --noinput
RUN pip install uvicorn
# Set the entrypoint to our script
ENTRYPOINT ["/entrypoint.sh"]
CMD ["uvicorn", "setup.asgi:application", "--host", "0.0.0.0", "--port", "7860"]
# ENTRYPOINT ["python", "manage.py", "runserver"]
# CMD ls /usr/lib/python3.12/site-packages/Lib/site-packages
# CMD pip freeze |