Added nginx to serve /repo folder
This commit is contained in:
@@ -15,6 +15,9 @@ FROM filebrowser/filebrowser AS final
|
||||
RUN apk update && apk add nginx
|
||||
COPY --from=build /fdroid/ /
|
||||
COPY settings.json /config/settings.json
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
RUN rm /etc/nginx/nginx.conf
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
EXPOSE 8084
|
||||
CMD ["--config", "/config/settings.json", "&", "nginx", "&", "wait"]
|
||||
ENTRYPOINT []
|
||||
#CMD ["sh", "-c", "while true; do sleep 1; done"]
|
||||
CMD ["sh", "-c", "nginx && /filebrowser --config /config/settings.json"]
|
||||
10
nginx.conf
10
nginx.conf
@@ -1,9 +1,15 @@
|
||||
server {
|
||||
listen *:8084;
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 8084;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /fdroid/repo;
|
||||
autoindex on;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user