diff --git a/Dockerfile b/Dockerfile index acd4a26..4e8d647 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,11 +75,4 @@ COPY --from=builder --chown=nobody:root /app/priv /app/priv USER nobody -# EPMD (elixir cluster) -EXPOSE 4369 -# API -EXPOSE 8080 -# CheSSH! -EXPOSE 34355 - CMD /app/bin/chessh eval "Chessh.Release.migrate" && /app/bin/chessh start diff --git a/buildscripts/build/build.sh b/buildscripts/build/build.sh index 107de30..482a577 100755 --- a/buildscripts/build/build.sh +++ b/buildscripts/build/build.sh @@ -151,7 +151,7 @@ function build_server() { temp_file=$(mktemp) cp "${build_dir}/.env" $temp_file - printf "\nNODE_ID=$node_conn\nRELEASE_NODE=chessh@192.168.100.${node_id}\nRELEASE_DISTRIBUTION=name\n" >> $temp_file + printf "\nNODE_ID=$node_conn\nRELEASE_NODE=chessh@192.168.100.${node_id}\nRELEASE_DISTRIBUTION=name\nRELEASE_COOKIE=chessh\n" >> $temp_file scp $ssh_opts $temp_file $node_conn:~/.env cp "${build_dir}/chessh.service" $temp_file