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
+5 -4

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
**/node_modules **/node_modules
.git .git
**/dist **/dist
**/tsconfig.tsbuildinfo **/tsconfig.tsbuildinfo
data
+2 -2
View File
@@ -2,7 +2,7 @@ FROM golang:1.24-alpine as cmd-hook-builder
WORKDIR /app WORKDIR /app
COPY ./services/cmd-hook/go.mod ./ COPY ./services/cmd-hook/go.mod ./
RUN go mod download RUN go mod download
COPY ./services/cmd-hook ./ COPY ./services/cmd-hook/*.go ./
RUN go build -o cmd-hook RUN go build -o cmd-hook
FROM golang:1.24-alpine as terminal-builder 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.mod ./
COPY ./services/terminal-service/go.sum ./ COPY ./services/terminal-service/go.sum ./
RUN go mod download RUN go mod download
COPY ./services/terminal-service ./ COPY ./services/terminal-service/*.go ./services/terminal-service/index.html ./
RUN go build -o terminal-service RUN go build -o terminal-service
FROM debian:bookworm-slim as main FROM debian:bookworm-slim as main
+1 -1
View File
@@ -44,7 +44,7 @@
// Create WebSocket connection // Create WebSocket connection
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:' const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'
const ws = new WebSocket( 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 // Handle WebSocket connection