postingbot / Dockerfile
xkailashhh's picture
Update Dockerfile
8b84c20 verified
Raw History Blame Contribute Delete
464 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
build-essential \
curl \
wget \
&& rm -rf /var/lib/apt/lists/*
COPY reqs.txt /app/
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r reqs.txt
COPY . /app
RUN useradd -m botuser \
&& chown -R botuser:botuser /app \
&& chmod +x /app/start.sh
USER botuser
CMD ["./start.sh"]