-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
34 lines (28 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:18-alpine
RUN apk add --no-cache git
RUN git clone --depth 1 --branch v2.0 https://gitdab.com/cadence/out-of-your-element.git /app
WORKDIR /app
RUN npm i
RUN adduser ooye -Du 1001
RUN chown -R ooye /app
RUN ln -s /data/ooye.db /app/db/ooye.db
RUN mkdir /data && chown -R ooye:ooye /data
USER ooye
ENV DISCORD_TOKEN="notarealdiscordtoken"
ENV SERVER_NAME="notmyrealserver.com"
ENV SERVER_ORIGIN="https://matrix.notmyrealserver.com"
# Discord Guild ID to upload emojis to, if necessary.
ENV EMOJI_GUILD=""
ENV ADMIN_INVITE=""
ENV CONTENT_LENGTH_WORKAROUND="false"
ENV NAMESPACE_PREFIX="_ooye_"
ENV URL="http://localhost:6693"
# This is the user and channel namespace used when creating user accounts or channels to mirror
# the Discord ones.
# These may be generated with:
# dd if=/dev/urandom bs=32 count=1 2> /dev/null | basenc --base16 | dd conv=lcase 2> /dev/null
ENV HS_TOKEN="[a unique 64 character hex string]"
ENV AS_TOKEN="[a unique 64 character hex string]"
VOLUME /app/db
COPY --chmod=744 --chown=ooye:ooye ./docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]