this is because everywhere about docker build write to create and use configs/config folder, not config, if we follow docker installation guide, there will not exist config folder in artemis root. Even if the folder exists, the folder will not be mapped inside the container, then we will get a build error about config not exist
in docker-compose.yml
```
app:
hostname: ma.app
build: .
volumes:
- ./aime:/app/aime
- ./configs/config:/app/config
```
in INSTALL_DOCKER.md
- Create 'aime', 'configs', 'AimeDB', and 'logs' folder in ARTEMiS root folder (where all source files exist)
- Inside configs folder, create 'config' folder, and copy all .yaml files from example_config to config (thats all files without nginx_example.conf)
- Edit .yaml files inside configs/config to suit your server needs
- Edit core.yaml inside configs/config
I checked this file history
in https://gitea.tendokyu.moe/Hay1tsme/artemis/commit/d1259509ad2bad2b43d2cf5164841775b10502f2, phantomlan already delete this, but don't know why it come back between https://gitea.tendokyu.moe/Hay1tsme/artemis/commit/040742a9a4e00efa162f55450a370a79ece91d53 and https://gitea.tendokyu.moe/Hay1tsme/artemis/commit/565dc38e9a4becf3ea4ddeeaf268d1648cb7eb6c, maybe git bug? However, now delete it again
Reviewed-on: https://gitea.tendokyu.moe/Hay1tsme/artemis/pulls/83
Co-authored-by: zaphkito <zaphkito@noreply.gitea.tendokyu.moe>
Co-committed-by: zaphkito <zaphkito@noreply.gitea.tendokyu.moe>
22 lines
479 B
Docker
22 lines
479 B
Docker
FROM python:3.9.15-slim-bullseye
|
|
|
|
RUN apt update && apt install default-libmysqlclient-dev build-essential libtk nodejs npm pkg-config -y
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt requirements.txt
|
|
RUN pip3 install -r requirements.txt
|
|
RUN npm i -g nodemon
|
|
|
|
COPY entrypoint.sh entrypoint.sh
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
COPY index.py index.py
|
|
COPY dbutils.py dbutils.py
|
|
COPY read.py read.py
|
|
ADD core core
|
|
ADD titles titles
|
|
ADD logs logs
|
|
ADD cert cert
|
|
|
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|