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
|
RUN apk update && apk add nginx
|
||||||
COPY --from=build /fdroid/ /
|
COPY --from=build /fdroid/ /
|
||||||
COPY settings.json /config/settings.json
|
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
|
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"]
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
server {
|
server {
|
||||||
listen *:8084;
|
listen 8084;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
@@ -7,3 +12,4 @@ server {
|
|||||||
autoindex on;
|
autoindex on;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user