iouoracle commited on
Commit
627db40
·
verified ·
1 Parent(s): bb4cdb6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +79 -79
Dockerfile CHANGED
@@ -4,84 +4,84 @@ FROM node:18
4
  RUN git clone https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
5
  WORKDIR "ChatGPT-Next-Web"
6
 
7
- # 创建新的样式内容
8
- RUN echo '@import "./animation.scss";
9
- @import "./window.scss";
10
-
11
- @mixin light {
12
- --theme: light;
13
- --white: #fff;
14
- --black: #303030;
15
- --gray: #fafafa;
16
- --primary: #315ef8;
17
- --second: #f3f3f6;
18
- --hover-color: #f3f3f3;
19
- --bar-color: rgba(0,0,0,.1);
20
- --theme-color: var(--gray);
21
- --shadow: 50px 50px 100px 10px rgba(0,0,0,.1);
22
- --card-shadow: 0px 2px 4px 0px rgba(0,0,0,.05);
23
- --border-in-light: 1px solid #dedede;
24
- --sidebar-sub-title: rgba(38,47,156,.5);
25
- }
26
-
27
- @mixin dark {
28
- --theme: dark;
29
- --white: #1e1e1e;
30
- --black: #bbb;
31
- --gray: #151515;
32
- --primary: #315ef8;
33
- --second: #26262c;
34
- --hover-color: #323232;
35
- --bar-color: rgba(255, 255, 255, 0.1);
36
- --border-in-light: 1px solid rgba(255, 255, 255, 0.192);
37
- --theme-color: var(--gray);
38
-
39
- div:not(.no-dark) > svg {
40
- filter: invert(0.5);
41
- }
42
- }
43
-
44
- .light {
45
- @include light;
46
- }
47
-
48
- .dark {
49
- @include dark;
50
- }
51
-
52
- .mask {
53
- filter: invert(0.8);
54
- }
55
-
56
- :root {
57
- @include light;
58
-
59
- --window-width: 90vw;
60
- --window-height: 90vh;
61
- --sidebar-width: 300px;
62
- --window-content-width: calc(100% - var(--sidebar-width));
63
- --message-max-width: 80%;
64
- --full-height: 100%;
65
- }
66
-
67
- @media only screen and (max-width: 600px) {
68
- :root {
69
- --window-width: 100vw;
70
- --window-height: var(--full-height);
71
- --sidebar-width: 100vw;
72
- --window-content-width: var(--window-width);
73
- --message-max-width: 100%;
74
- }
75
-
76
- .no-mobile {
77
- display: none;
78
- }
79
- }
80
-
81
- @media (prefers-color-scheme: dark) {
82
- :root {
83
- @include dark;
84
- }
85
  }' > /tmp/new_globals.scss
86
 
87
  # 将剩余的原始样式内容附加到新文件中
@@ -96,4 +96,4 @@ RUN npm i
96
  RUN npm run build
97
 
98
  EXPOSE 3000
99
- CMD ["npm", "run", "start"]
 
4
  RUN git clone https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
5
  WORKDIR "ChatGPT-Next-Web"
6
 
7
+ # 创建新的样式文件
8
+ RUN echo '@import "./animation.scss";\n\
9
+ @import "./window.scss";\n\
10
+ \n\
11
+ @mixin light {\n\
12
+ --theme: light;\n\
13
+ --white: #fff;\n\
14
+ --black: #303030;\n\
15
+ --gray: #fafafa;\n\
16
+ --primary: #315ef8;\n\
17
+ --second: #f3f3f6;\n\
18
+ --hover-color: #f3f3f3;\n\
19
+ --bar-color: rgba(0,0,0,.1);\n\
20
+ --theme-color: var(--gray);\n\
21
+ --shadow: 50px 50px 100px 10px rgba(0,0,0,.1);\n\
22
+ --card-shadow: 0px 2px 4px 0px rgba(0,0,0,.05);\n\
23
+ --border-in-light: 1px solid #dedede;\n\
24
+ --sidebar-sub-title: rgba(38,47,156,.5);\n\
25
+ }\n\
26
+ \n\
27
+ @mixin dark {\n\
28
+ --theme: dark;\n\
29
+ --white: #1e1e1e;\n\
30
+ --black: #bbb;\n\
31
+ --gray: #151515;\n\
32
+ --primary: #315ef8;\n\
33
+ --second: #26262c;\n\
34
+ --hover-color: #323232;\n\
35
+ --bar-color: rgba(255, 255, 255, 0.1);\n\
36
+ --border-in-light: 1px solid rgba(255, 255, 255, 0.192);\n\
37
+ --theme-color: var(--gray);\n\
38
+ \n\
39
+ div:not(.no-dark) > svg {\n\
40
+ filter: invert(0.5);\n\
41
+ }\n\
42
+ }\n\
43
+ \n\
44
+ .light {\n\
45
+ @include light;\n\
46
+ }\n\
47
+ \n\
48
+ .dark {\n\
49
+ @include dark;\n\
50
+ }\n\
51
+ \n\
52
+ .mask {\n\
53
+ filter: invert(0.8);\n\
54
+ }\n\
55
+ \n\
56
+ :root {\n\
57
+ @include light;\n\
58
+ \n\
59
+ --window-width: 90vw;\n\
60
+ --window-height: 90vh;\n\
61
+ --sidebar-width: 300px;\n\
62
+ --window-content-width: calc(100% - var(--sidebar-width));\n\
63
+ --message-max-width: 80%;\n\
64
+ --full-height: 100%;\n\
65
+ }\n\
66
+ \n\
67
+ @media only screen and (max-width: 600px) {\n\
68
+ :root {\n\
69
+ --window-width: 100vw;\n\
70
+ --window-height: var(--full-height);\n\
71
+ --sidebar-width: 100vw;\n\
72
+ --window-content-width: var(--window-width);\n\
73
+ --message-max-width: 100%;\n\
74
+ }\n\
75
+ \n\
76
+ .no-mobile {\n\
77
+ display: none;\n\
78
+ }\n\
79
+ }\n\
80
+ \n\
81
+ @media (prefers-color-scheme: dark) {\n\
82
+ :root {\n\
83
+ @include dark;\n\
84
+ }\n\
85
  }' > /tmp/new_globals.scss
86
 
87
  # 将剩余的原始样式内容附加到新文件中
 
96
  RUN npm run build
97
 
98
  EXPOSE 3000
99
+ CMD ["npm", "run", "start"]