19 lines
618 B
Docker
19 lines
618 B
Docker
FROM python:3.10
|
|
|
|
RUN apt update && apt install -y xfonts-base xfonts-75dpi python3-pip python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /code
|
|
|
|
# copy both 'package.json' and 'package-lock.json' (if available)
|
|
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
# install project dependencies
|
|
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
|
COPY ./app /code/app
|
|
|
|
EXPOSE 8000
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|