Delete dockerfile
This commit is contained in:
parent
91c6522e66
commit
72a51d444c
26
dockerfile
26
dockerfile
@ -1,26 +0,0 @@
|
|||||||
FROM python:3.11-slim
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
||||||
PYTHONUNBUFFERED=1
|
|
||||||
|
|
||||||
# deps first
|
|
||||||
COPY requirements.txt .
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
# app code
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
# runtime dirs + seed default config path (actual seeding done in entrypoint)
|
|
||||||
RUN mkdir -p /config /data
|
|
||||||
|
|
||||||
# runtime env defaults (can be overridden by compose/env)
|
|
||||||
ENV SHAI_CONFIG=/config/settings.conf \
|
|
||||||
SHAI_DATA=/data/data.json
|
|
||||||
|
|
||||||
# small, explicit entrypoint
|
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/entrypoint
|
|
||||||
RUN chmod +x /usr/local/bin/entrypoint
|
|
||||||
|
|
||||||
ENTRYPOINT ["entrypoint"]
|
|
||||||
CMD ["python","-u","/app/bot.py"]
|
|
Loading…
Reference in New Issue
Block a user