19 lines
617 B
Docker
19 lines
617 B
Docker
FROM python:3.12-slim
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y --no-install-recommends gosu \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& useradd --system --uid 10001 --no-create-home slump
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY manage.py ./
|
|
COPY siteconfig siteconfig
|
|
COPY catalog catalog
|
|
COPY shop shop
|
|
COPY templates templates
|
|
COPY static static
|
|
COPY scripts/entrypoint.sh /usr/local/bin/slump-entrypoint
|
|
RUN chmod 0755 /usr/local/bin/slump-entrypoint
|
|
EXPOSE 8000
|
|
ENTRYPOINT ["/usr/local/bin/slump-entrypoint"]
|