-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (26 loc) · 987 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
FROM debian:bookworm
ARG UCM_VERSION
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates
COPY public.gpg /etc/apt/trusted.gpg.d/unison-computing.gpg
COPY unison-computing.list /etc/apt/sources.list.d/unison-computing.list
COPY backports.list /etc/apt/sources.list.d/backports.list
RUN adduser --disabled-password --home /home/unison unison &&\
install -d -o unison -g unison /codebase &&\
ln -s /codebase /home/unison/.unison &&\
apt-get update &&\
apt-get -y -t bookworm-backports install fzf unisonweb=${UCM_VERSION} &&\
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen &&\
dpkg-reconfigure --frontend=noninteractive locales &&\
update-locale LANG=en_US.UTF-8 &&\
ucm --codebase-create /codebase &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*
ENV UCM_PORT=8080
ENV UCM_TOKEN=public
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
EXPOSE 8080
WORKDIR /home/unison
USER unison
ENTRYPOINT ["/usr/bin/ucm"]