2022-09-02 21:30:45 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
FROM python:3
|
|
|
|
|
|
|
|
RUN useradd -d /code pathogen
|
|
|
|
RUN mkdir /code
|
|
|
|
RUN chown pathogen:pathogen /code
|
|
|
|
|
|
|
|
RUN mkdir /venv
|
|
|
|
RUN chown pathogen:pathogen /venv
|
|
|
|
|
|
|
|
USER pathogen
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /code
|
|
|
|
COPY requirements.txt /code/
|
|
|
|
COPY discord-patched.tgz /code/
|
|
|
|
|
|
|
|
RUN python -m venv /venv
|
2022-10-01 13:46:45 +00:00
|
|
|
RUN . /venv/bin/activate && pip install -r requirements.txt
|
|
|
|
# && python -m spacy download en_core_web_sm
|
2022-09-02 21:30:45 +00:00
|
|
|
|
2022-09-05 06:20:30 +00:00
|
|
|
RUN tar xf /code/discord-patched.tgz -C /venv/lib/python3.10/site-packages
|
2022-09-02 21:30:45 +00:00
|
|
|
|
|
|
|
CMD . /venv/bin/activate && exec python monolith.py
|