14 lines
No EOL
260 B
Docker
14 lines
No EOL
260 B
Docker
FROM python:slim
|
|
|
|
WORKDIR ./
|
|
ARG PUID=1000
|
|
ENV USER docker
|
|
ENV HOMEDIR "/home/${USER}"
|
|
|
|
RUN useradd -u "${PUID}" -m "${USER}"
|
|
USER ${USER}
|
|
WORKDIR ${HOMEDIR}
|
|
COPY . .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
CMD [ "python", "./bot.py" ] |