Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed May 30, 2024
1 parent 7bcc3bd commit 349bf52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 349bf52

Please sign in to comment.