chore: update Dockerfile

This commit is contained in:
jmal 2024-05-30 16:28:29 +08:00
parent 7bcc3bd7f1
commit 349bf52a7f
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 "$@"