Skip to content

Commit 21501ba

Browse files
committed
Refactor Dockerfile to update environment variable names and values
1 parent fd93f72 commit 21501ba

File tree

6 files changed

+11
-484
lines changed

6 files changed

+11
-484
lines changed

Framework/vue/v3.4.29/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ RUN cd /home/devbox/project && \
1313
npm install && \
1414
npm run build
1515

16-
1716
RUN mkdir -p /home/devbox/.devbox
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
cd /home/devbox/project
3-
npm run start
3+
npm run preview

Framework/vue/v3.4.29/project/vite.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ export default defineConfig({
1212
host: "0.0.0.0",
1313
port: "3000"
1414
},
15+
preview: {
16+
host: "0.0.0.0",
17+
port: 3000,
18+
},
1519
resolve: {
1620
alias: {
1721
'@': fileURLToPath(new URL('./src', import.meta.url))

config-cn.json

Lines changed: 3 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,8 @@
11
{
22
"runtime": {
3-
"Framework": [
4-
{
5-
"name": "gin",
6-
"version": [
7-
{
8-
"name": "v1.10.0",
9-
"image": "ghcr.io/labring-actions/devbox/gin-v1.10.0:ec5b632",
10-
"config": "{ports:\n [ {containerPort: 22,\n name: devbox-ssh-port,\n protocol: TCP}]\n appPorts:\n [{port: 8080,\n name: devbox-app-port,\n protocol: TCP}]\n user: devbox,\n workingDir: /home/devbox/project,\n releaseCommand:\n [/bin/bash\n , -c]\n releaseArgs:\n [/home/devbox/project/entrypoint.sh]}"
11-
}
12-
]
13-
},
14-
{
15-
"name": "next.js",
16-
"version": [
17-
{
18-
"name": "14.2.5",
19-
"image": "ghcr.io/labring-actions/devbox/next.js-14.2.5:ec5b632",
20-
"config": "{ports:\n [ {containerPort: 22,\n name: devbox-ssh-port,\n protocol: TCP}]\n appPorts:\n [{port: 8080,\n name: devbox-app-port,\n protocol: TCP}]\n user: devbox,\n workingDir: /home/devbox/project,\n releaseCommand:\n [/bin/bash\n , -c]\n releaseArgs:\n [/home/devbox/project/entrypoint.sh]}"
21-
}
22-
]
23-
},
24-
{
25-
"name": "pytorch",
26-
"version": [
27-
{
28-
"name": "pytorch",
29-
"image": "ghcr.io/labring-actions/devbox/pytorch-pytorch:769de7",
30-
"config": "{ports:\n [ {containerPort: 22,\n name: devbox-ssh-port,\n protocol: TCP}]\n appPorts:\n [{port: 8080,\n name: devbox-app-port,\n protocol: TCP}]\n user: devbox,\n workingDir: /home/devbox/project,\n releaseCommand:\n [/bin/bash\n , -c]\n releaseArgs:\n [/home/devbox/project/entrypoint.sh]}"
31-
}
32-
]
33-
}
34-
],
35-
"Language": [
36-
{
37-
"name": "go",
38-
"version": [
39-
{
40-
"name": "1.22.5",
41-
"image": "ghcr.io/labring-actions/devbox/gin-v1.10.0:a9e413",
42-
"config": "{ports:\n [ {containerPort: 22,\n name: devbox-ssh-port,\n protocol: TCP}]\n appPorts:\n [{port: 8080,\n name: devbox-app-port,\n protocol: TCP}]\n user: devbox,\n workingDir: /home/devbox/project,\n releaseCommand:\n [/bin/bash\n , -c]\n releaseArgs:\n [/home/devbox/project/entrypoint.sh]}"
43-
}
44-
]
45-
}
46-
],
3+
"Framework": [],
4+
"Language": [],
475
"Custom": [],
48-
"OS": [
49-
{
50-
"name": "ubuntu-cuda",
51-
"version": [
52-
{
53-
"name": "24.04",
54-
"image": "ghcr.io/labring-actions/devbox/ubuntu-cuda-24.04:df331ef",
55-
"config": "{ports:\n [ {containerPort: 22,\n name: devbox-ssh-port,\n protocol: TCP}]\n appPorts:\n [{port: 8080,\n name: devbox-app-port,\n protocol: TCP}]\n user: devbox,\n workingDir: /home/devbox/project,\n releaseCommand:\n [/bin/bash\n , -c]\n releaseArgs:\n [/home/devbox/project/entrypoint.sh]}"
56-
}
57-
]
58-
},
59-
{
60-
"name": "ubuntu",
61-
"version": [
62-
{
63-
"name": "24.04",
64-
"image": "ghcr.io/labring-actions/devbox/ubuntu-24.04:df331ef",
65-
"config": "{ports:\n [ {containerPort: 22,\n name: devbox-ssh-port,\n protocol: TCP}]\n appPorts:\n [{port: 8080,\n name: devbox-app-port,\n protocol: TCP}]\n user: devbox,\n workingDir: /home/devbox/project,\n releaseCommand:\n [/bin/bash\n , -c]\n releaseArgs:\n [/home/devbox/project/entrypoint.sh]}"
66-
}
67-
]
68-
}
69-
]
6+
"OS": []
707
}
718
}

0 commit comments

Comments
 (0)