Skip to content

Commit 7ca30c7

Browse files
committed
Add docker entrypoint which loads variables from file
1 parent 79878d7 commit 7ca30c7

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ EXPOSE 9090
4242
COPY --from=golayer /console/console .
4343

4444
USER 1000:1000
45-
ENTRYPOINT ["/console"]
46-
CMD [ "server"]
45+
ENTRYPOINT [ "./docker-entrypoint.sh" ]
46+
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)