Dockerfile
SQL sorguları
Sistem yönetimi
Yapılandırma dosyaları
Lisans: Belirtilmemis
Dockerfile — Dockerfile
Dockerfile — SQL sorguları, Sistem yönetimi, Yapılandırma dosyaları. SQL sorgusu içerir.
FROM python:3.12-slim
WORKDIR /code
COPY requirements.txt .
RUN apt-get update && apt-get install -y --no-install-recommends gosu && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade pip==26.2.1 \
&& pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
COPY entrypoint.sh /entrypoint.sh
RUN groupadd --gid 1000 kitchenboard \
&& useradd --uid 1000 --gid kitchenboard --home-dir /code kitchenboard \
&& mkdir -p /data \
&& chown -R kitchenboard:kitchenboard /code /data \
&& chmod +x /entrypoint.sh
# The database lives in /data, which every documented install bind-mounts to the host.
# Declared here so a bare `docker run` with no -v still keeps it in a volume rather than
# the container's writable layer, where `docker rm` would take the household with it.
VOLUME ["/data"]
ENTRYPOINT ["/entrypoint.sh"]
Tespit Edilen SQL Sorguları
update && apt-get install -y --no-install-recommends gosu && rm -rf /var/lib/apt/lists/*
with no -v still keeps it in a volume rather than