hstz commited on
Commit
bd74252
·
verified ·
1 Parent(s): 4b1bbe6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -3,6 +3,11 @@ FROM node:lts-alpine
3
  EXPOSE 3000
4
  ENV TZ=Asia/Shanghai
5
 
 
 
 
 
 
6
  WORKDIR /app
7
  RUN apk add git
8
  RUN git clone https://github.com/906051999/cursor-api.git . && \
@@ -13,4 +18,4 @@ RUN yarn
13
 
14
  RUN sed -i 's/\/v1\/chat\/completions/\/proxy\/v1\/chat\/completions/g' src/index.js
15
 
16
- CMD ["npm", "run", "start"]
 
3
  EXPOSE 3000
4
  ENV TZ=Asia/Shanghai
5
 
6
+ # 添加时区配置
7
+ RUN apk add --no-cache tzdata && \
8
+ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
9
+ echo $TZ > /etc/timezone
10
+
11
  WORKDIR /app
12
  RUN apk add git
13
  RUN git clone https://github.com/906051999/cursor-api.git . && \
 
18
 
19
  RUN sed -i 's/\/v1\/chat\/completions/\/proxy\/v1\/chat\/completions/g' src/index.js
20
 
21
+ CMD ["npm", "run", "start"]