4c360655c1
- Added Roboto font files to the Docker image and specified their location. - Updated the PDF generation code to use the Roboto font instead of Arial. - Enhanced the PDF output by including additional font styles (Bold, Italic, etc.) for better formatting. - Created a new directory for fonts in the Docker container to manage font files effectively.
19 lines
479 B
Docker
19 lines
479 B
Docker
FROM python:3.14-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV DEBIANFRONTEND=noninteractive
|
|
WORKDIR /app
|
|
|
|
RUN apt update && apt install -y build-essential figlet libpq-dev default-libmysqlclient-dev pkg-config && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt /app/
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . /app/
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
EXPOSE 8000
|
|
RUN mkdir -pv /fonts
|
|
COPY tienda/static/fonts/ /fonts/
|
|
CMD ["/app/entrypoint.sh"] |