Merge pull request #491 from NuSkooler/feature/docker_dev

Docker Update
This commit is contained in:
Bryan Ashby 2023-08-26 21:11:26 -06:00 committed by GitHub
commit 3e1ec4477c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 3 deletions

12
.dockerignore Normal file
View File

@ -0,0 +1,12 @@
node_modules
package-lock.json
yarn.lock
filebase
db
drop
file_base
logs
mail
docs/_site
docs/.sass-cache

View File

@ -1,4 +1,4 @@
FROM node:14-buster-slim FROM node:18-buster-slim
LABEL maintainer="dave@force9.org" LABEL maintainer="dave@force9.org"
@ -21,8 +21,10 @@ RUN apt-get update \
lhasa \ lhasa \
unrar-free \ unrar-free \
p7zip-full \ p7zip-full \
dos2unix \
&& npm install -g npm@latest \
&& npm install -g pm2 \ && npm install -g pm2 \
&& cd /enigma-bbs && npm install --only=production \ && cd /enigma-bbs && npm install \
&& pm2 start main.js \ && pm2 start main.js \
&& mkdir -p /enigma-bbs-pre/art \ && mkdir -p /enigma-bbs-pre/art \
&& mkdir /enigma-bbs-pre/mods \ && mkdir /enigma-bbs-pre/mods \
@ -37,6 +39,7 @@ RUN apt-get update \
# sexyz # sexyz
COPY docker/bin/sexyz /usr/local/bin COPY docker/bin/sexyz /usr/local/bin
RUN dos2unix /enigma-bbs/docker/bin/docker-entrypoint.sh && apt-get remove dos2unix -y
RUN chmod +x /enigma-bbs/docker/bin/docker-entrypoint.sh RUN chmod +x /enigma-bbs/docker/bin/docker-entrypoint.sh
# enigma storage mounts # enigma storage mounts

View File

@ -71,5 +71,9 @@ Customising the Docker image is easy!
1. Clone the ENiGMA-BBS source. 1. Clone the ENiGMA-BBS source.
2. Build the image 2. Build the image
```bash ```bash
docker build -f ./docker/Dockerfile . docker build -t enigmabbs -f ./docker/Dockerfile .
```
3. Run the image
```bash
docker run -it -p 8888:8888 --name "ENiGMABBS" -v "$(pwd)/config:/enigma-bbs/config" -v "$(pwd)/db:/enigma-bbs/db" -v "$(pwd)/logs:/enigma-bbs/logs" -v "$(pwd)/filebase:/enigma-bbs/filebase" -v "$(pwd)/art:/enigma-bbs/art" -v "$(pwd)/mods:/enigma-bbs/mods" -v "$(pwd)/mail:/mail" enigmabbs
``` ```