Merge pull request #141 from jamebal/upload

chore
This commit is contained in:
jmal 2024-05-30 16:28:57 +08:00 committed by GitHub
commit 9e36392a9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -27,6 +27,11 @@ template: |
docker-compose pull && docker-compose up -d
```
#### 清理旧镜像
```shell
docker images --filter=reference='jmal/jmalcloud*' --filter "dangling=true" -q | xargs -r docker rmi
```
## Changes in this release:
$CHANGES

View File

@ -2,8 +2,6 @@ FROM nginx:latest
COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/nginx.conf.template
COPY dist /var/www/public
COPY config.js.template /var/www/public/config.js.template

View File

@ -1,7 +1,4 @@
#!/bin/bash
set -e
echo "API_URL: $API_URL"
echo "API_OFFICE_URL: $API_OFFICE_URL"
envsubst '${API_URL} ${API_OFFICE_URL}' < /var/www/public/config.js.template > /var/www/public/config.js
cat /var/www/public/config.js
exec "$@"