Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
supernets
unrealircd
Repository navigation
Code
Issues
Pull requests
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
unrealircd
/
Dockerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
40 lines (30 loc) · 1.37 KB
master
Breadcrumbs
unrealircd
/
Dockerfile
Copy path
Top
File metadata and controls
Code
Blame
40 lines (30 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
34
35
36
37
38
39
40
# SuperNETS UnrealIRCd - Developed by acidvegas (https://git.supernets.org/supernets/unrealircd)
# unrealircd/Dockerfile
# Use a bare minimal Alpine Linux base image
FROM alpine:3.24
# Install build dependencies
RUN apk add --no-cache build-base pkgconf openssl openssl-dev pcre2-dev argon2-dev libsodium-dev c-ares-dev curl-dev ca-certificates libcap
# Copy the UnrealIRCd source code to the container
COPY src /tmp/unrealircd
# Create a user and directory for UnrealIRCd
RUN addgroup -g 1000 unrealircd && adduser -D -u 1000 -G unrealircd -s /bin/sh unrealircd && mkdir -p /opt/unrealircd && chown -R unrealircd:unrealircd /tmp/unrealircd /opt/unrealircd
# Switch to the user
USER unrealircd
# User-Agent for remote includes
ARG SUPERNETS_USER_AGENT
# Configure UnrealIRCd
RUN test -n "$SUPERNETS_USER_AGENT" \
&& cd /tmp/unrealircd \
&& sed -i "s|^#define SUPERNETS_USER_AGENT .*|#define SUPERNETS_USER_AGENT \"$SUPERNETS_USER_AGENT\"|" include/config.h \
&& echo "" | ./Config -nointro \
&& make -j$(nproc) \
&& make install \
&& rm -rf /tmp/unrealircd
# Grant the bind capability for privileged ports (ircd still runs non-root)
USER root
RUN setcap cap_net_bind_service=+ep /opt/unrealircd/bin/unrealircd
USER unrealircd
# Expose the required ports
EXPOSE 1 6667 6697 7000
# Set the entrypoint to start UnrealIRCd
ENTRYPOINT ["/opt/unrealircd/bin/unrealircd", "-F"]
You can’t perform that action at this time.