copy in docker image, changed absolute path

pull/583/head
Battula Sai Vinesh 2020-12-29 09:51:28 +00:00
parent 1c720079b4
commit 46d4068232
3 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ COPY ./discover_my_public_ip.sh /usr/local/bin
RUN chmod +x /usr/local/bin/entrypoint.sh && \ RUN chmod +x /usr/local/bin/entrypoint.sh && \
chmod +x /usr/local/bin/discover_my_public_ip.sh chmod +x /usr/local/bin/discover_my_public_ip.sh
COPY ./gameserver_ips.txt /usr/local/bin
EXPOSE 4443 EXPOSE 4443
CMD /usr/local/bin/entrypoint.sh CMD /usr/local/bin/entrypoint.sh

View File

@ -0,0 +1 @@
68.183.184.220

View File

@ -26,7 +26,7 @@ public class GameServerIP {
private static void loadIPs() { private static void loadIPs() {
try { try {
File file = new File("/opt/openvidu/gameserver_ips.txt"); File file = new File("/usr/local/bin/gameserver_ips.txt");
Scanner scanner = new Scanner(file); Scanner scanner = new Scanner(file);
while (scanner.hasNextLine()) { while (scanner.hasNextLine()) {