diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7f2c287 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +target/ +api/dev/ +api/target/ +api/vids/ +api/thumbs/ +aws/ +gitpage/ +scripts/ +ts/ diff --git a/scripts/build-all.sh b/scripts/build-all.sh index 3fe88ef..1defb8b 100755 --- a/scripts/build-all.sh +++ b/scripts/build-all.sh @@ -15,3 +15,4 @@ cp api/templates/ build/ -r cp api/static/ build -r bash ./scripts/default-rocket-toml.sh +docker build -t registry.gitlab.com/shockrah/clippable . diff --git a/scripts/default-rocket-toml.sh b/scripts/default-rocket-toml.sh index 313cdb4..94863a2 100644 --- a/scripts/default-rocket-toml.sh +++ b/scripts/default-rocket-toml.sh @@ -2,7 +2,7 @@ echo Copying in default configuration for web server cat << EOF > build/Rocket.toml -[production] +[release] address = "0.0.0.0" port = 8482 keep_alive = 5