Files
lifehackerhansol 0f12c10e36 Dockerfile: get rid of git
We're no longer using discord-ext-menus, so git is no longer required
2024-10-23 09:25:46 -07:00

16 lines
405 B
Docker

FROM python:3.11-slim
ENV IS_DOCKER=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV HOME /home/intmodmail
RUN useradd -m -d $HOME -s /bin/sh intmodmail
WORKDIR $HOME
COPY ./requirements.txt .
RUN pip install --no-compile --no-cache-dir -r requirements.txt
USER intmodmail
RUN mkdir -p ./data/logs
RUN touch ./data/logs/main.log
RUN touch ./data/logs/sql.log
COPY . .
CMD ["python3", "main.py"]