27 lines
646 B
Docker
27 lines
646 B
Docker
FROM node:24.5.0-alpine
|
|
|
|
RUN apk update && apk add --no-cache \
|
|
curl \
|
|
unzip \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
RUN curl -fsSL https://github.com/filebrowser/filebrowser/releases/latest/download/linux-amd64-filebrowser.tar.gz \
|
|
| tar -xzC /usr/local/bin filebrowser \
|
|
&& chmod +x /usr/local/bin/filebrowser
|
|
|
|
RUN mkdir -p /foundry /data /config
|
|
|
|
COPY ./build/foundry /foundry/
|
|
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
ENV FILEBROWSER_USERNAME=admin
|
|
|
|
EXPOSE 30000 8080
|
|
|
|
VOLUME [ "/data" ]
|
|
VOLUME [ "/foundry" ]
|
|
VOLUME [ "/config" ]
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ] |