mirror of
https://code.lenaisten.de/Lenaisten/lenaverse-bot.git
synced 2024-11-25 00:03:00 +00:00
18 lines
281 B
Docker
18 lines
281 B
Docker
|
FROM python:3.11-slim
|
||
|
|
||
|
# env setup
|
||
|
WORKDIR /usr/local/src/lenaverse_bot
|
||
|
|
||
|
# install lenaverse_bot
|
||
|
COPY . ./
|
||
|
RUN set -ex; \
|
||
|
# remove example app
|
||
|
rm -rf /app; \
|
||
|
\
|
||
|
python -m pip --no-cache-dir install ./
|
||
|
|
||
|
# run as unprivileged user
|
||
|
USER nobody
|
||
|
|
||
|
CMD [ "lenaverse-bot" ]
|