Compare commits
No commits in common. "5583c7ac8853533071d89a8820e71ad118aaddd4" and "91b0e4f6ddaa97c5de704253ff247c759377a644" have entirely different histories.
5583c7ac88
...
91b0e4f6dd
3 changed files with 5 additions and 5 deletions
|
|
@ -1 +0,0 @@
|
|||
golang 1.24.1
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
FROM alpine:3.21
|
||||
|
||||
RUN apk update && apk add wine xvfb winetricks golang
|
||||
FROM scottyhardy/docker-wine:stable-9.0-20240915
|
||||
|
||||
ARG SQL_ADDRESS
|
||||
ARG SQL_ACCOUNT
|
||||
|
|
@ -11,6 +9,9 @@ ARG SERVER_NAME
|
|||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install golang-go xvfb -y
|
||||
|
||||
# Start display for headless wine
|
||||
RUN Xvfb :0 -screen 0 1024x768x16 &
|
||||
# Install wine dependencies
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -24,7 +24,7 @@ func main() {
|
|||
wg.Add(1)
|
||||
go func(executable string) {
|
||||
fmt.Printf("Starting %v...\n", bin)
|
||||
cmd := exec.Command("xvfb-run wine " + cwd + "/deploy/" + executable + ".exe") cmd.Stdout = os.Stdout
|
||||
cmd := exec.Command(cwd + "/deploy/" + executable + ".exe") cmd.Stdout = os.Stdout
|
||||
if err := cmd.Run(); err != nil {
|
||||
fmt.Println(err.Error())
|
||||
os.Exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue