Skip to content

Commit 168e43a

Browse files
committed
Add entrypoint script for reading environtment variables
1 parent 53f054e commit 168e43a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Dockerfile.release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ COPY console /console
1818
EXPOSE 9090
1919

2020
USER 1000:1000
21-
ENTRYPOINT ["/console"]
22-
CMD [ "server"]
21+
ENTRYPOINT [ "./docker-entrypoint.sh" ]
22+
CMD [ "./console", "server" ]

docker-entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
if [ -f /tmp/minio/config.env ]
3+
then
4+
. /tmp/minio/config.env
5+
fi
6+
exec "$@"

0 commit comments

Comments
 (0)