Compare commits
No commits in common. "f81f7fe4c8fd3f2295c967e1d312772f661f6195" and "24a1a6cc5ebe125c8213e8d22e925c229f56b040" have entirely different histories.
f81f7fe4c8
...
24a1a6cc5e
2 changed files with 5 additions and 14 deletions
|
@ -3,11 +3,15 @@
|
||||||
FROM node:16.15.0-alpine3.15
|
FROM node:16.15.0-alpine3.15
|
||||||
|
|
||||||
RUN apk add dumb-init
|
RUN apk add dumb-init
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --chown=node:node . .
|
COPY --chown=node:node . .
|
||||||
|
|
||||||
RUN npm ci --only=production
|
RUN npm ci --only=production
|
||||||
|
|
||||||
CMD ["dumb-init", "node", "src/index.js"]
|
CMD ["dumb-init", "node", "src/index.js"]
|
||||||
|
|
15
README.md
15
README.md
|
@ -6,7 +6,7 @@
|
||||||
### En local
|
### En local
|
||||||
> Cloner le repo.
|
> Cloner le repo.
|
||||||
|
|
||||||
> Spécifier un fichier `.env` en suivant [l'exemple](config/example.env).
|
> Spécifier un fichier `.env` en suivant l'exemple [de l'exemple](example.env).
|
||||||
|
|
||||||
> Installer les dépendences du bot.
|
> Installer les dépendences du bot.
|
||||||
```bash
|
```bash
|
||||||
|
@ -18,19 +18,6 @@ npm install
|
||||||
npm run main
|
npm run main
|
||||||
```
|
```
|
||||||
|
|
||||||
### Avec Docker (Recommandé)
|
|
||||||
> Facile avec `docker-compose`
|
|
||||||
```docker
|
|
||||||
version: "3.9"
|
|
||||||
services:
|
|
||||||
botanique:
|
|
||||||
build: https://git.kennel.ml/ConfrerieDuKassoulait/Botanique.git#main
|
|
||||||
container_name: Botanique
|
|
||||||
environment:
|
|
||||||
- TOKEN_DISCORD=your-token-goes-here
|
|
||||||
restart: unless-stopped
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
---
|
||||||
### Références
|
### Références
|
||||||
[Photo de profil](https://picrew.me/image_maker/1497656)
|
[Photo de profil](https://picrew.me/image_maker/1497656)
|
||||||
|
|
Loading…
Reference in a new issue