-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 1.12 KB
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
FROM ubuntu:22.04
# Set environment variables to prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Install basic dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
wget \
iptables \
iproute2 \
net-tools \
iputils-ping \
dnsutils \
gnupg \
lsb-release \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Add PostgreSQL official APT repository
RUN wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/pgdg.gpg && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
# Install PostgreSQL and VPN tools
RUN apt-get update && apt-get install -y --no-install-recommends \
postgresql-15 \
postgresql-client-15 \
postgresql-contrib-15 \
shadowsocks-libev \
proxychains4 \
&& rm -rf /var/lib/apt/lists/*
# Create entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Set entrypoint
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]