-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
35 lines (29 loc) · 1008 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
27
28
29
30
31
32
33
34
35
FROM debian:12
ENV BACKUP_TIME="0 12 * * *" \
PATH=/opt/gitlab/embedded/bin:/opt/gitlab/bin:/assets:$PATH \
TERM=xterm \
PACKAGECLOUD_REPO=gitlab-ce \
RELEASE_PACKAGE=gitlab-ce \
RELEASE_VERSION=16.1.2-ce.0 \
DOWNLOAD_URL=https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/bookworm/gitlab-ce_16.1.2-ce.0_amd64.deb/download.deb
COPY container-files /
RUN \
apt-get update -q && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
ca-certificates \
openssh-server \
wget \
apt-transport-https \
vim \
tzdata \
cron \
perl \
nano && \
rm -rf /var/lib/apt/lists/* && \
sed 's/session\s*required\s*pam_loginuid.so/session optional pam_loginuid.so/g' -i /etc/pam.d/sshd && \
rm -rf /etc/update-motd.d /etc/motd /etc/motd.dynamic && \
ln -fs /dev/null /run/motd. && \
/assets/setup
EXPOSE 443 80 22
VOLUME ["/etc/gitlab", "/var/opt/gitlab", "/var/log/gitlab"]
CMD ["/assets/wrapper"]