AnotherLanguageApp / Dockerfile
samu's picture
env
4403fe7
raw
history blame
387 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 ./.env .env
CMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]