From 4783f61b230d62375e60469be84f24978898bea0 Mon Sep 17 00:00:00 2001 From: ave Date: Wed, 10 Aug 2022 21:31:04 +0200 Subject: [PATCH] docker improvements --- Dockerfile | 4 ++-- README.md | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1a951e3..2bd6b69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . diff --git a/README.md b/README.md index 7c64338..af00e0f 100755 --- a/README.md +++ b/README.md @@ -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