-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path22.Dockerfile
46 lines (38 loc) · 1.48 KB
/
22.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ARG IMAGE_REPO
FROM ${IMAGE_REPO:-lagoon}/node-22
LABEL org.opencontainers.image.authors="The Lagoon Authors" maintainer="The Lagoon Authors"
LABEL org.opencontainers.image.source="https://github.com/uselagoon/lagoon-images" repository="https://github.com/uselagoon/lagoon-images"
ENV LAGOON=node
RUN apk add -U --repository http://dl-cdn.alpinelinux.org/alpine/v3.19/main mariadb-client=10.11.6-r0 mariadb-connector-c \
&& apk add --no-cache bash \
coreutils \
findutils \
git \
gzip \
mongodb-tools \
openssh-client \
openssh-sftp-server \
patch \
postgresql-client \
procps \
rsync \
tar \
unzip \
&& rm -rf /var/cache/apk/* \
&& ln -s /usr/lib/ssh/sftp-server /usr/local/bin/sftp-server \
&& mkdir -p /home/.ssh \
&& fix-permissions /home/
# We not only use "export $PATH" as this could be overwritten again
# like it happens in /etc/profile of alpine Images.
COPY entrypoints /lagoon/entrypoints/
# Make sure shells are not running forever
RUN echo "source /lagoon/entrypoints/80-shell-timeout.sh" >> /home/.bashrc
# Copy mariadb-client configuration.
COPY mariadb-client.cnf /etc/my.cnf.d/
RUN fix-permissions /etc/my.cnf.d/
# SSH Key and Agent Setup
COPY ssh_config /etc/ssh/ssh_config
RUN sed -i '/# Deprecated: lagoon_cli.key/,+2d' /etc/ssh/ssh_config
ENV SSH_AUTH_SOCK=/tmp/ssh-agent
ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.sh"]
CMD ["/bin/docker-sleep"]