-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (26 loc) · 1.11 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
FROM debian:bookworm
RUN apt-get update && \
apt-get install -y openssh-server gnupg ca-certificates curl jq && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \
# Java 21 from Azul Zulu
curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg && \
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" > /etc/apt/sources.list.d/zulu.list && \
apt-get update && \
apt-get install -y zulu21-jre-headless && \
# gatling-user User \
groupmod -g 1000 users && \
useradd -u 911 -U -d /config -s /bin/bash gatling-user && \
usermod -G users gatling-user && \
mkdir -p /config && \
# Gatling OS tuning \
echo "* soft nofile 65535\n* hard nofile 65535" >> /etc/security/limits.conf && \
echo "session required pam_limits.so" >> /etc/pam.d/sshd && \
# Cleanup
rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
$HOME/.cache
EXPOSE 22
COPY /root /
ENTRYPOINT ["/docker/docker-entrypoint"]
CMD ["/usr/sbin/sshd", "-D", "-e"]