-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 857 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (18 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
RUN apt-get update && apt-get install -y --no-install-recommends \
libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz-subset0 libpq5 \
fonts-dejavu-core fonts-liberation curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Binaire Tailwind standalone (linux x64)
RUN curl -sLo /usr/local/bin/tailwindcss \
https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/tailwindcss-linux-x64 \
&& chmod +x /usr/local/bin/tailwindcss
COPY . .
RUN tailwindcss -c theme/tailwind.config.js -i theme/input.css -o static/css/app.css --minify \
&& python manage.py collectstatic --noinput
ENTRYPOINT ["./docker-entrypoint.sh"]
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000"]