-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 972 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
#FROM alpine:latest
#RUN apk --update add ca-certificates \
# mailcap \
# curl
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y poppler-utils wv unrtf tidy && \
apt-get install -y inotify-tools && \
apt-get install -y ca-certificates mailcap curl
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \
CMD curl -f http://localhost/health || exit 1
VOLUME /srv
EXPOSE 8110
COPY packages/backend/docker_config.json /.filebrowser.json
#COPY packages/backend/filebrowser /filebrowser
RUN mkdir dist
COPY packages/backend/dist dist
# Detect the CPU architecture and copy the appropriate binary
RUN if [ "$(uname -m)" = "x86_64" ]; then \
cp dist/linux-amd64/filebrowser /filebrowser; \
elif [ "$(uname -m)" = "aarch64" ]; then \
cp dist/linux-arm64/filebrowser /filebrowser; \
else \
echo "Unsupported CPU architecture" && exit 1; \
fi
ENTRYPOINT [ "/filebrowser" ]