File tree Expand file tree Collapse file tree
custom-domain/dstack-ingress Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,16 +88,24 @@ Explanation of environment variables:
8888If you prefer to build the image yourself :
8989
90901. Clone this repository
91- 2. Build the Docker image :
91+ 2. Build the Docker image using the provided build script :
9292
9393` ` ` bash
94- docker build -t yourusername/dstack-ingress .
94+ ./ build-image.sh yourusername/dstack-ingress:tag
9595` ` `
9696
97+ **Important**: You must use the `build-image.sh` script to build the image. This script ensures reproducible builds with:
98+ - Specific buildkit version (v0.20.2)
99+ - Deterministic timestamps (`SOURCE_DATE_EPOCH=0`)
100+ - Package pinning for consistency
101+ - Git revision tracking
102+
103+ Direct `docker build` commands will not work properly due to the specialized build requirements.
104+
971053. Push to your registry (optional) :
98106
99107` ` ` bash
100- docker push yourusername/dstack-ingress
108+ docker push yourusername/dstack-ingress:tag
101109` ` `
102110
1031114. Update the docker-compose.yaml file with your image name and deploy
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ setup_py_env() {
1515setup_nginx_conf () {
1616 cat << EOF > /etc/nginx/conf.d/default.conf
1717server {
18- listen ${PORT} ssl http2;
18+ listen ${PORT} ssl;
19+ http2 on;
1920 server_name ${DOMAIN} ;
2021
2122 # SSL certificate configuration
@@ -37,7 +38,7 @@ server {
3738 # Enable OCSP stapling
3839 ssl_stapling on;
3940 ssl_stapling_verify on;
40- ssl_trusted_certificate /etc/letsencrypt/live/${DOMAIN} /chain .pem;
41+ ssl_trusted_certificate /etc/letsencrypt/live/${DOMAIN} /fullchain .pem;
4142 resolver 8.8.8.8 8.8.4.4 valid=300s;
4243 resolver_timeout 5s;
4344
You can’t perform that action at this time.
0 commit comments