Revert back to original Dockerfile because of https://github.com/filebrowser/filebrowser/pull/2614#issuecomment-1665692445
This commit is contained in:
parent
06fe5429ab
commit
a29745f510
3
.gitignore
vendored
3
.gitignore
vendored
@ -33,4 +33,5 @@ build/
|
||||
/frontend/dist/*
|
||||
!/frontend/dist/.gitkeep
|
||||
|
||||
default.nix
|
||||
default.nix
|
||||
Dockerfile.dev
|
||||
35
Dockerfile
35
Dockerfile
@ -1,30 +1,8 @@
|
||||
FROM alpine:latest as builder
|
||||
FROM alpine:latest
|
||||
RUN apk --update add ca-certificates \
|
||||
mailcap \
|
||||
curl \
|
||||
jq \
|
||||
libc6-compat \
|
||||
make \
|
||||
nodejs \
|
||||
npm \
|
||||
bash \
|
||||
ncurses \
|
||||
go \
|
||||
git
|
||||
WORKDIR /build
|
||||
|
||||
COPY ./ /build
|
||||
|
||||
RUN go mod download
|
||||
|
||||
RUN make build
|
||||
|
||||
VOLUME /srv
|
||||
EXPOSE 80
|
||||
|
||||
FROM alpine:latest as target
|
||||
|
||||
WORKDIR /app
|
||||
jq
|
||||
|
||||
COPY healthcheck.sh /healthcheck.sh
|
||||
RUN chmod +x /healthcheck.sh # Make the script executable
|
||||
@ -32,7 +10,10 @@ RUN chmod +x /healthcheck.sh # Make the script executable
|
||||
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \
|
||||
CMD /healthcheck.sh || exit 1
|
||||
|
||||
COPY docker_config.json .filebrowser.json
|
||||
COPY --from=builder /build/filebrowser filebrowser
|
||||
VOLUME /srv
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT [ "./filebrowser" ]
|
||||
COPY docker_config.json /.filebrowser.json
|
||||
COPY filebrowser /filebrowser
|
||||
|
||||
ENTRYPOINT [ "/filebrowser" ]
|
||||
Loading…
Reference in New Issue
Block a user