mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: make quest image building process cleaner
This commit is contained in:
1 parent
c7e6d31b9c
commit
fb863ba030
3 files changed
+4
-3
No files matched your search
@@ -2,3 +2,4 @@
|
||||
.git
|
||||
**/dist
|
||||
**/tsconfig.tsbuildinfo
|
||||
data
|
||||
+2
-2
@@ -2,7 +2,7 @@ FROM golang:1.24-alpine as cmd-hook-builder
|
||||
WORKDIR /app
|
||||
COPY ./services/cmd-hook/go.mod ./
|
||||
RUN go mod download
|
||||
COPY ./services/cmd-hook ./
|
||||
COPY ./services/cmd-hook/*.go ./
|
||||
RUN go build -o cmd-hook
|
||||
|
||||
FROM golang:1.24-alpine as terminal-builder
|
||||
@@ -10,7 +10,7 @@ WORKDIR /app
|
||||
COPY ./services/terminal-service/go.mod ./
|
||||
COPY ./services/terminal-service/go.sum ./
|
||||
RUN go mod download
|
||||
COPY ./services/terminal-service ./
|
||||
COPY ./services/terminal-service/*.go ./services/terminal-service/index.html ./
|
||||
RUN go build -o terminal-service
|
||||
|
||||
FROM debian:bookworm-slim as main
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
// Create WebSocket connection
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'
|
||||
const ws = new WebSocket(
|
||||
`${protocol}//${window.location.host}${window.location.pathname}/ws?token=${token}`
|
||||
`${protocol}//${window.location.host}${window.location.pathname}ws?token=${token}`
|
||||
)
|
||||
|
||||
// Handle WebSocket connection
|
||||
|
||||
Reference in new issue
Block a user