summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimponic <elizabeth.hunt@simponic.xyz>2023-01-31 21:21:45 -0700
committerSimponic <elizabeth.hunt@simponic.xyz>2023-01-31 21:21:45 -0700
commitbd49a76dc3a26570fea6722f7ee94688420dc9b4 (patch)
treed3295a877a30f0d03a2668411c4686322a5b006f
parent800d479863af3e0548bb5c77d229aa1b9a2c143f (diff)
downloadchessh-bd49a76dc3a26570fea6722f7ee94688420dc9b4.tar.gz
chessh-bd49a76dc3a26570fea6722f7ee94688420dc9b4.zip
Set cookie, remove unnecessary expose's
-rw-r--r--Dockerfile7
-rwxr-xr-xbuildscripts/build/build.sh2
2 files changed, 1 insertions, 8 deletions
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