Split dockerfile into three different dockerfiles such that dependencies are only downloaded once This allows the build to be a bit faster, since all deps are downloaded once at the start. This also makes it so the frontend container no longer needs to be ran, as its files are directly embedded into the nginx container This also remove the extra files, since bind mounts do work it also remove the entrypoint.sh file, as you should prefer to not use it
12 lines
181 B
Text
12 lines
181 B
Text
location /app {
|
|
root /var/share/www/static/;
|
|
try_files /index.html =404;
|
|
}
|
|
|
|
location /assets {
|
|
root /var/share/www/static/;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$http_host/app;
|
|
}
|