-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (26 loc) · 964 Bytes
/
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
# OS
FROM ubuntu:latest
# Set version label
LABEL maintainer="github.com/Dofamin"
LABEL image="Dante-Socks5"
LABEL OS="Ubuntu/latest"
COPY container-image-root/ /
# ARG & ENV
ENV TZ=Europe/Moscow
# Update system packages:
RUN apt -y update > /dev/null 2>&1;\
# Fix for select tzdata region
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone > /dev/null 2>&1;\
dpkg-reconfigure --frontend noninteractive tzdata > /dev/null 2>&1;\
# Install dependencies, you would need common set of tools.
apt -y install curl wget ntp logrotate cron > /dev/null 2>&1;\
# Install dante server.
apt -y install dante-server > /dev/null 2>&1;\
mkdir -p /Dante ;\
(crontab -l 2>/dev/null; echo "0 0 * * * /usr/sbin/logrotate /Dante/logrotate/logrotate_sockd.conf >> /var/log/cron.log 2>&1") | crontab - ;\
# Cleanup
apt-get clean > /dev/null 2>&1;
# Expose Ports:
EXPOSE 443/tcp 443/udp
# CMD
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]