Skip to content
Snippets Groups Projects
Verified Commit 04fc10fd authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Initial commit

parents
Branches main
No related tags found
No related merge requests found
.env
\ No newline at end of file
FROM node:23-bullseye
RUN apt update && apt install git -y
RUN apt clean
RUN mkdir -p /app
WORKDIR /app
RUN git clone https://github.com/OpenAsar/arrpc .
RUN npm install
ENV XDG_RUNTIME_DIR=/tmp
EXPOSE 6463-6472
EXPOSE 1337
ENTRYPOINT ["npx", "arrpc"]
# arrpc
Quick 'n' dirty docker image and compose file for running arrpc.
## Usage
### Via Docker Compose
```bash
# Clone the repo and cd
git clone https://git.rb9.xyz/docker/arrpc.git
cd arrpc
# Set up the environment. This command will set the directory that discord's IPC socket goes into.
echo XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR > ./.env
# Start arrpc
docker compose up -d
```
### Via Docker run
```bash
# Clone the repo and cd
git clone https://git.rb9.xyz/docker/arrpc.git
cd arrpc
# Build the image
docker build -t arrpc .
# Run the container
docker run -d \
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
-v $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR \
-p 1337:1337 -p 6463:6463 \
arrpc
```
services:
arrpc:
build: .
restart: unless-stopped
environment:
- XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR
volumes:
- $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR
ports:
- 127.0.0.1:6463:6463/tcp
- 127.0.0.1:1337:1337/tcp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment