diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..37d7e73 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +.env diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c3f8fb3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:18-alpine + +WORKDIR /app + +COPY package*.json ./ + +RUN npm ci + +COPY . . + +ENV WEB_PORT=3000 + +EXPOSE 3000 + +CMD ["npm", "start"] diff --git a/README.md b/README.md index e77b34c..b6e6510 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,37 @@ If you, for example, take a look at the Link XML, you will see the IP, Port and ### **_I do not provide support for installation and hosting!_** +## Docker + +### Creating Image + +`docker build . -t ls22-oasis` + +### Running the image + +`docker run -it -e WEB_PORT=3000 -e SERVER_IP=your_server_ip:port -e SERVER_KEY=your_server_key -e DEFAULT_LANGUAGE=de -p 80:3000 ls22-oasis` + +### Docker Compose example + +```docker +services: + ls22-oasis: + image: bergi9/ls22-oasis:latest + container_name: ls22-oasis + restart: unless-stopped + ports: + - "80:3000" + environment: + WEB_PORT: 3000 + SERVER_IP: your_server_ip:port + SERVER_KEY: your_server_key + DEFAULT_LANGUAGE: de +``` + +### Public Docker Image + +`bergi9/ls22-oasis` + ## Authors This project is licensed under GNU Lesser General Public License version 3 (GNU LGPLv3) - see the [LICENSE](LICENSE) file for details. diff --git a/package-lock.json b/package-lock.json index 5518b46..41764d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "oasis", - "version": "1.22.6", + "version": "1.22.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "oasis", - "version": "1.22.6", + "version": "1.22.8", "license": "GNU LGPLv3", "dependencies": { "async": ">=3.2.4",