docker improvements

This commit is contained in:
ave 2022-08-10 21:31:04 +02:00
parent 9f9fae34c1
commit 4783f61b23
2 changed files with 7 additions and 2 deletions

View file

@ -1,9 +1,9 @@
FROM python:alpine
FROM python:3.10-alpine
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apk add --no-cache git gcc musl-dev python3-dev libffi-dev openssl-dev cargo && pip install --no-cache-dir -r requirements.txt && apk del gcc musl-dev python3-dev libffi-dev openssl-dev cargo
RUN apk add --no-cache git gcc musl-dev python3-dev libffi-dev openssl-dev cargo && pip install -U pip && pip install --no-cache-dir -r requirements.txt && apk del gcc musl-dev python3-dev libffi-dev openssl-dev cargo
COPY . .

View file

@ -21,6 +21,11 @@ Code is based on https://gitlab.com/a/dpybotbase and https://github.com/916253/K
To keep the bot running, you might want to use pm2 or a systemd service.
### Alternatively, dockerization
- `docker build . -t robocopng`
- `docker run --restart=always -v ~/robocop-ng:/usr/src/app/robocop_ng python:3.10`
---
## Tips for people moving from Kurisu/Robocop