Skip to content

Commit 8850f3d

Browse files
authored
Merge branch 'master' into custom-activity
2 parents f65954a + 041c4fd commit 8850f3d

File tree

3 files changed

+88
-13
lines changed

3 files changed

+88
-13
lines changed

Dockerfile

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,38 @@
1-
FROM python:3.10 as py
1+
FROM python:3.11-slim-bookworm as base
22

3-
FROM py as build
3+
RUN apt-get update && \
4+
apt-get install --no-install-recommends -y \
5+
# Install CairoSVG dependencies.
6+
libcairo2 && \
7+
# Cleanup APT.
8+
apt-get clean && \
9+
rm -rf /var/lib/apt/lists/* && \
10+
# Create a non-root user.
11+
useradd --shell /usr/sbin/nologin --create-home -d /opt/modmail modmail
412

5-
RUN apt update && apt install -y g++ git
13+
FROM base as builder
614

7-
COPY requirements.txt /
8-
RUN pip install --prefix=/inst -U -r /requirements.txt
15+
COPY requirements.txt .
916

10-
FROM py
17+
RUN pip install --root-user-action=ignore --no-cache-dir --upgrade pip wheel && \
18+
python -m venv /opt/modmail/.venv && \
19+
. /opt/modmail/.venv/bin/activate && \
20+
pip install --no-cache-dir --upgrade -r requirements.txt
1121

12-
COPY --from=build /inst /usr/local
22+
FROM base
1323

14-
ENV USING_DOCKER yes
15-
RUN useradd --system --no-create-home modmail
16-
USER modmail
24+
# Copy the entire venv.
25+
COPY --from=builder --chown=modmail:modmail /opt/modmail/.venv /opt/modmail/.venv
26+
27+
# Copy repository files.
28+
WORKDIR /opt/modmail
29+
USER modmail:modmail
30+
COPY --chown=modmail:modmail . .
31+
32+
# This sets some Python runtime variables and disables the internal auto-update.
33+
ENV PYTHONUNBUFFERED=1 \
34+
PYTHONDONTWRITEBYTECODE=1 \
35+
PATH=/opt/modmail/.venv/bin:$PATH \
36+
USING_DOCKER=yes
1737

18-
WORKDIR /modmailbot
1938
CMD ["python", "bot.py"]
20-
COPY --chown=modmail:modmail . /modmailbot

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ Advertise Your Server:
147147
</a>
148148
<br>
149149
<br>
150+
Help Us • Help Other's:
151+
<br>
152+
<a href='https://discord.gg/5yQCFzY6HU'>
153+
<img height=100 src='https://i.imgur.com/Gi3jxeH.gif' style='margin:5px'>
154+
</a>
155+
<br>
156+
<br>
150157
Discord Advice Center:
151158
<br>
152159
<a href='https://discord.gg/zmwZy5fd9v'>

SPONSORS.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"icon_url": "https://i.imgur.com/cjVtRw5.jpg"
8282
},
8383
"image": {
84-
"url": "https://i.imgur.com/1hrjcHd.png"
84+
"url": "https://i.imgur.com/1hrjcHd.png"
8585
},
8686
"fields": [
8787
{
@@ -128,5 +128,55 @@
128128
"url": "https://discord.gg/uncommon",
129129
"title": "uncommon community"
130130
}
131+
},
132+
{
133+
"embed": {
134+
"author": {
135+
"name": "Help us • Help Others"
136+
},
137+
"title": "Join Today",
138+
"url": "https://discord.gg/5yQCFzY6HU",
139+
"description": "At Help Us • Help Others, we accept as true with inside the transformative electricity of cooperation and kindness. Each one people has the capability to make a meaningful impact by means of helping and caring for others. Whether you want assistance or want to offer it, this is the right region for you!",
140+
"fields": [
141+
{
142+
"name": "What we offer:",
143+
"value": "`🎬` - Active community\n`👮` - Active staff around the globe! \n`🛜` - 40+ Advertising channels to grow your socials!\n`💎` - Boosting Perks\n`🎉` - Event's monthly especially bank holiday roles!!\n`🔢` - Unique levelling systems\n`📞` - Multiple voice channels including gaming!\n`🎁` - Exclusive giveaways!"
144+
},
145+
{
146+
"name": "We Are Hiring",
147+
"value": "`🔵` - Moderators\n`🔵` - Human Resources\n`🔵` - Community Team\n`🔵` - Partnership Manager\n`🔵` - Growth Manager\n`🚀` Much more to come!\n\n\nJoin Today!"
148+
}
149+
],
150+
"image": {
151+
"url": "https://cdn.discordapp.com/attachments/1218338794416246874/1243635366326567002/AD_animated.gif"
152+
},
153+
"color": 45300,
154+
"footer": {
155+
"text": "Help Us • Help Others"
156+
}
157+
}
158+
},
159+
{
160+
"embed": {
161+
"description": "> Be apart of our community as we start to grow! and embark on a long journey.\n——————————————————-\n**What we offer?**\n\n➺〚🖌️〛Custom Liveries \n➺〚❤️〛Friendly and Growing community.\n➺〚🤝〛Partnerships.\n➺〚🎮〛Daily SSUs. \n➺〚🚨〛Great roleplays.\n➺〚💬〛Kind and Professional staff\n➺〚🎉〛Giveaways!!! \n——————————————————-\n**Emergency Services**\n\n➺〚🚔〛NY Police Force\n➺〚🚒〛Fire & Emergency NY\n➺〚🚧〛NY department of transportation \n\n——————————————————-\n**Whitelisted**\nComing soon!\n——————————————————-\n**What are we looking for!**\n\n➺〚💬〛More members\n➺〚⭐〛Staff Members - **WE'RE HIRING!**\n➺〚🤝〛Partnerships\n➺〚💎〛Boosters\n——————————————————\n\n**[Join now](https://discord.com/invite/qt62qSnKVa)**",
162+
"author": {
163+
"name": "New York Roleplay",
164+
"icon_url": "https://cdn.discordapp.com/icons/1172553254882775111/648d5bc50393a21216527a1aaa61286d.webp"
165+
},
166+
"color": 431075,
167+
"thumbnail": {
168+
"url": "https://cdn.discordapp.com/icons/1172553254882775111/648d5bc50393a21216527a1aaa61286d.webp"
169+
}
170+
}
171+
},
172+
{
173+
"embed": {
174+
"title": "Pixelmark TM PLC",
175+
"description": "Hi there! Welcome to PixelMark PLC! \nI'm so glad you're here. I started PixelMark PLC on May 24, 2023. Our team is dedicated to providing top-quality products and a great shopping experience. But more than that, PixelMark PLC is a community. We're here to share, create, and have fun together. Thanks for joining us on this exciting journey! Our current Goal is to reach 100 Human Members, you can help us achieve that Goal by joining or/and inviting your Friends!\n\nBest regards, \n*Felixpro202110 / Chief Executive Officer (Founder)* \n-----------------------------------------------------------------------\n> https://discord.gg/RVzNVRaFeE\n> https://www.roblox.com/groups/16031525/PixelMark-PLC",
176+
"color": 10634504,
177+
"image": {
178+
"url": "https://imgur.com/iTl1dXm.png"
179+
}
180+
}
131181
}
132182
]

0 commit comments

Comments
 (0)