chore: update Dockerfile
This commit is contained in:
parent
7bcc3bd7f1
commit
349bf52a7f
5
.github/release-drafter.yml
vendored
5
.github/release-drafter.yml
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user