Commit Graph

36 Commits

Author SHA1 Message Date
Laisky.Cai
0d9c79be35 fix: update Go base image version and enhance token status checks in UpdateToken function 2024-11-20 02:52:09 +00:00
Laisky.Cai
ce57b2e1e1 fix: update Go base image version and reorder model list in constants 2024-09-25 09:55:57 +00:00
Laisky.Cai
ed21634738 fix: Update Docker image configuration for improved build and security
Here is the commit summary:

- Update Dockerfile to use golang 1.22.5-bullseye and new dependencies.
- Upgrade dependencies, including apt-get, make, and build-essential.
- Improve Docker image build process with updated RUN commands and flags.

Note that I didn't include details from the file summaries, as per your request. The goal is to provide a high-level overview of the changes in the commit.
2024-07-09 07:03:38 +00:00
Laisky.Cai
a2a8aa741f refactor: update Dockerfile to remove unnecessary build flags 2024-07-09 06:54:04 +00:00
Laisky.Cai
f9417d32e1 Merge remote-tracking branch 'origin/upstream/main' 2024-07-09 06:28:06 +00:00
zijiren
ffdb0b0c81
fix: use musl libc (#1597) 2024-07-06 13:14:07 +08:00
Laisky.Cai
ca23dd9a97 Merge commit '1c2654320e5b6268b13b6efca40ce37a523d032b' 2024-04-28 01:53:31 +00:00
Laisky.Cai
c735b9b4d3 Merge commit '2369025842b828ac38f4427fd1ebab8d03b1fe7f' 2024-04-20 01:07:29 +00:00
Laisky.Cai
6bb110154b chore: Update Go dependencies and Dockerfile; tweak AWS config in go.mod
- Update go.mod to replace `github.com/aws/aws-sdk-go-v2/config` with `github.com/aws/aws-sdk-go-v2/credentials`
- Update Dockerfile to use golang version `1.22.2-bullseye`
- Modify go.sum to downgrade and remove certain dependencies, with no functional changes to code
2024-04-18 05:25:04 +00:00
Laisky.Cai
cef41193d9 Merge remote-tracking branch 'origin/upstream/main' 2024-03-16 07:49:36 +00:00
GAI Group
11af81eb39 feat: add new theme air (#1167)
* chore: add theme air with new-api main branch v0.2.0.3-alpha.1(first step)

* feat: 完成渠道界面

* chore: 优化渠道界面样式问题

* feat: 完成兑换码界面

* feat: 完成充值(钱包)界面

* chore: 初代air主题将使用default主题的运营设置界面、系统设置界面、其他设置界面

* feat: 完成日志界面

* feat: 完成用户管理界面

* feat: 完成个人设置界面

* feat: 完成令牌界面

* chore: 优化令牌界面逻辑

* feat: 修改版权信息

* chore: make necessary changes

---------

Co-authored-by: Calon <1808837298@qq.com>
Co-authored-by: Apple\Apple <zeraturing@foxmail.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-03-16 15:29:35 +08:00
Laisky.Cai
914f1ccd8c fix: Update Dockerfile with newer golang version and base image.
- Updated the Golang version from 1.22.0 to 1.22.1 in the Dockerfile.
- Changed the base image version from golang:1.22.0-bullseye to golang:1.22.1-bullseye in the Dockerfile.
- The updates to the Dockerfile include important security and bug fixes, as well as potential performance improvements.
2024-03-11 09:32:25 +00:00
Laisky.Cai
609a6cb4b2 Merge remote-tracking branch 'origin/upstream/main' 2024-02-22 01:54:25 +00:00
JustSong
32387d9c20 fix: fix version is blank 2024-02-21 22:21:01 +08:00
Laisky.Cai
281df64214 build: Update Golang in Docker image to 1.22.0
- Update Golang container image
2024-02-19 07:23:56 +00:00
Laisky.Cai
d37fa80106 Merge remote-tracking branch 'origin/upstream/main' 2024-01-11 09:28:40 +00:00
JustSong
318adf5985 chore: remove useless lines 2024-01-07 16:28:44 +08:00
JustSong
965d7fc3d2 fix: fix Dockerfile 2024-01-07 15:33:33 +08:00
JustSong
aa3f605894 fix: fix Dockerfile 2024-01-07 15:17:21 +08:00
JustSong
7b8eff1f22 fix: fix Dockerfile 2024-01-07 15:15:02 +08:00
JustSong
e80cd508ba fix: fix Dockerfile 2024-01-07 15:12:30 +08:00
JustSong
d37f836d53 fix: fix Dockerfile 2024-01-07 15:03:36 +08:00
JustSong
e0b2d1ae47 fix: fix Dockerfile 2024-01-07 14:55:04 +08:00
JustSong
797ead686b fix: fix Dockerfile 2024-01-07 14:42:23 +08:00
JustSong
0d22cf9ead fix: fix Dockerfile 2024-01-07 14:38:02 +08:00
Laisky.Cai
021affc81a Merge remote-tracking branch 'origin/upstream/main' 2024-01-03 05:54:05 +00:00
JustSong
83f95935de ci: fix Dockerfile & ci 2024-01-01 19:23:46 +08:00
JustSong
aa03c89133 feat: able to add more UI theme (#860) 2024-01-01 18:55:03 +08:00
Laisky.Cai
7239b3386a Merge remote-tracking branch 'origin/upstream/main' 2023-12-12 06:00:29 +00:00
Laisky
d847b2354e chore: Update dependencies and Dockerfile 2023-11-09 03:17:40 +00:00
Laisky.Cai
bc8ceca742 feat: api can modify token's used and remains
- Updated base image in Dockerfile from `node:16` to `node:18`
- Added `tokenPatch` struct to handle updates to the `Token` model
- Updated `UpdateToken` function to use `tokenPatch` struct for binding JSON
- Improved error handling and validation for token updates
- Refined checks for token status, expiration, and quota
- Enhanced error handling and response for token updates
- Updated JSON response to include `data` field
2023-09-30 00:53:55 +00:00
Jungley
e4bacc45d6
ci: add stage caching to Dockerfile (#408) 2023-08-13 22:55:43 +08:00
JustSong
2b088a1678 fix: disable eslint when building (close #371, close #376) 2023-08-12 09:29:29 +08:00
JustSong
8be7c9ae80 chore: update Dockerfile 2023-04-26 13:04:01 +08:00
JustSong
539eac217f Rename to One API 2023-04-22 21:14:09 +08:00
JustSong
ab1f8a2bf4
Initial commit 2023-04-22 20:39:27 +08:00