fix: make quest image building process cleaner

This commit is contained in:
Justin Lin committed 2025-05-05 19:55:40 +08:00
1 parent c7e6d31b9c
commit fb863ba030
3 files changed
+4 -3

No files matched your search

+1
View File
@@ -2,3 +2,4 @@
.git
**/dist
**/tsconfig.tsbuildinfo
data
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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