Skip to content

Commit 1197eca

Browse files
authored
Merge pull request #40 from agarbato/2.53.4
Bump alpine to 3.19.1 / unison 2.53.4
2 parents 705b444 + 29d5f0f commit 1197eca

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Dockerfile

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM alpine:3.18.0
1+
FROM alpine:3.19.1
2+
ARG UNISON_VERSION=2.53.4
23

34
MAINTAINER andrea.garbato@gmail.com
45

@@ -28,10 +29,18 @@ RUN apk add --no-cache \
2829
py3-pip \
2930
logrotate \
3031
python3-dev \
31-
unison \
32-
#&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community unison==2.53.0-r0 \
33-
&& pip3 install flask flask_restful uwsgi requests flask-basicAuth flask-autoindex psutil apscheduler sqlalchemy \
34-
&& apk del libc-dev linux-headers gcc g++ python3-dev
32+
ocaml \
33+
curl \
34+
musl-dev \
35+
make \
36+
# Download & Install Unison
37+
&& curl -L https://github.com/bcpierce00/unison/archive/refs/tags/v${UNISON_VERSION}.tar.gz | tar zxv -C /tmp \
38+
&& cd /tmp/unison-${UNISON_VERSION} \
39+
&& make \
40+
&& cp src/unison src/unison-fsmonitor /usr/bin \
41+
&& pip3 install --break-system-packages flask flask_restful uwsgi requests flask-basicAuth flask-autoindex psutil apscheduler sqlalchemy \
42+
&& apk del libc-dev linux-headers gcc g++ python3-dev curl musl-dev ocaml make \
43+
&& rm -rf /tmp/unison-${UNISON_VERSION}
3544

3645
RUN mkdir -p /var/run/sshd /run/nginx /usr/local/unicloud
3746
ADD app/ /usr/local/unicloud/

0 commit comments

Comments
 (0)