Skip to content

Commit

Permalink
Refactor Dockerfile to update environment variable names and values
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Dec 19, 2024
1 parent fd93f72 commit 21501ba
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 484 deletions.
1 change: 0 additions & 1 deletion Framework/vue/v3.4.29/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ RUN cd /home/devbox/project && \
npm install && \
npm run build


RUN mkdir -p /home/devbox/.devbox
2 changes: 1 addition & 1 deletion Framework/vue/v3.4.29/project/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
cd /home/devbox/project
npm run start
npm run preview
4 changes: 4 additions & 0 deletions Framework/vue/v3.4.29/project/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export default defineConfig({
host: "0.0.0.0",
port: "3000"
},
preview: {
host: "0.0.0.0",
port: 3000,
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
Expand Down
69 changes: 3 additions & 66 deletions config-cn.json
Original file line number Diff line number Diff line change
@@ -1,71 +1,8 @@
{
"runtime": {
"Framework": [
{
"name": "gin",
"version": [
{
"name": "v1.10.0",
"image": "ghcr.io/labring-actions/devbox/gin-v1.10.0:ec5b632",
"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]}"
}
]
},
{
"name": "next.js",
"version": [
{
"name": "14.2.5",
"image": "ghcr.io/labring-actions/devbox/next.js-14.2.5:ec5b632",
"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]}"
}
]
},
{
"name": "pytorch",
"version": [
{
"name": "pytorch",
"image": "ghcr.io/labring-actions/devbox/pytorch-pytorch:769de7",
"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]}"
}
]
}
],
"Language": [
{
"name": "go",
"version": [
{
"name": "1.22.5",
"image": "ghcr.io/labring-actions/devbox/gin-v1.10.0:a9e413",
"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]}"
}
]
}
],
"Framework": [],
"Language": [],
"Custom": [],
"OS": [
{
"name": "ubuntu-cuda",
"version": [
{
"name": "24.04",
"image": "ghcr.io/labring-actions/devbox/ubuntu-cuda-24.04:df331ef",
"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]}"
}
]
},
{
"name": "ubuntu",
"version": [
{
"name": "24.04",
"image": "ghcr.io/labring-actions/devbox/ubuntu-24.04:df331ef",
"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]}"
}
]
}
]
"OS": []
}
}
Loading

0 comments on commit 21501ba

Please sign in to comment.