Skip to content

Commit 6c12cbf

Browse files
committed
add xmpp-discord-bridge
1 parent 3bf25a8 commit 6c12cbf

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

projects.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"ref": "main"
66
},
77
"knot": {
8-
"repo": "https://tangled.org/@tangled.org/core.git",
8+
"repo": "https://tangled.org/tangled.org/core.git",
99
"ref": "master"
1010
},
1111
"spindle": {
12-
"repo": "https://tangled.org/@tangled.org/core.git",
12+
"repo": "https://tangled.org/tangled.org/core.git",
1313
"ref": "master"
1414
},
1515
"i2pd-tools": {
@@ -20,6 +20,10 @@
2020
"repo": "https://github.com/joinloops/loops-server.git",
2121
"ref": "master"
2222
},
23-
"caddy": {}
23+
"caddy": {},
24+
"xmpp-discord-bridge": {
25+
"repo": "https://tangled.org/did:plc:rjhjcb3rgdsmdr6ykywuh63z/xmpp-discord-bridge",
26+
"ref": "main"
27+
}
2428
}
2529
}

xmpp-discord-bridge/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM python:3.11-alpine AS builder
2+
3+
COPY . /build
4+
WORKDIR /build
5+
6+
RUN apk add --no-cache git cargo libgcc
7+
RUN pip3 install --no-cache-dir setuptools wheel
8+
RUN pip3 install .
9+
RUN apk del git cargo && rm -rf /build
10+
11+
FROM python:3.11-alpine
12+
13+
RUN adduser -D -u 1000 app
14+
USER app
15+
16+
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
17+
COPY --from=builder /usr/local/bin/xmpp-discord-bridge /usr/local/bin/
18+
19+
ENTRYPOINT ["xmpp-discord-bridge"]

0 commit comments

Comments
 (0)