AnotherLanguageApp / Dockerfile
samu's picture
modifying env
39739f3
raw
history blame
404 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
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
COPY --chown=user .env /code/.env
CMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]