Fix front pwd and epmd
This commit is contained in:
parent
58eb3df0f4
commit
ce5f598331
@ -71,7 +71,11 @@ COPY --from=builder --chown=nobody:root /app/priv /app/priv
|
|||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
|
|
||||||
|
# EPMD (elixir cluster)
|
||||||
|
EXPOSE 4369
|
||||||
|
# API
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
# CheSSH!
|
||||||
EXPOSE 34355
|
EXPOSE 34355
|
||||||
|
|
||||||
CMD /app/bin/chessh eval "Chessh.Release.migrate" && /app/bin/chessh start
|
CMD /app/bin/chessh eval "Chessh.Release.migrate" && /app/bin/chessh start
|
||||||
|
@ -36,5 +36,6 @@ sudo docker build . -t chessh/server
|
|||||||
cd $HOME
|
cd $HOME
|
||||||
sudo mv chessh.service /etc/systemd/system/chessh.service
|
sudo mv chessh.service /etc/systemd/system/chessh.service
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable --now chessh
|
sudo systemctl enable chessh
|
||||||
sudo systemctl restart chessh
|
sudo systemctl stop chessh
|
||||||
|
sudo systemctl start chessh
|
||||||
|
@ -6,9 +6,8 @@ export $(cat $env_file | xargs)
|
|||||||
|
|
||||||
docker build ../.. -t chessh/server
|
docker build ../.. -t chessh/server
|
||||||
|
|
||||||
cd front
|
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg REACT_APP_DISCORD_OAUTH=${REACT_APP_DISCORD_OAUTH} \
|
--build-arg REACT_APP_DISCORD_OAUTH=${REACT_APP_DISCORD_OAUTH} \
|
||||||
--build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \
|
--build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \
|
||||||
--build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \
|
--build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \
|
||||||
. -t chessh/frontend
|
../../front -t chessh/frontend
|
||||||
|
Loading…
Reference in New Issue
Block a user