AnotherLanguageApp / Dockerfile
samu's picture
modifying dockerfile
808d453
raw
history blame
363 Bytes
FROM python:3.9
WORKDIR /code
# Install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache --upgrade -r /code/requirements.txt
# Copy application code and .env file
COPY ./backend /code/backend
COPY --chown=user .env /code/
ENV PYTHONPATH=/code
CMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]