Skip to content

Commit

Permalink
chore: Update Dockerfile to use latest version of debian-ssh-12.6 image
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Sep 13, 2024
1 parent 08c4b3f commit 81b7ff3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Language/go/1.22.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/labring-actions/devbox/debian-ssh-12.6:d8b67a
FROM ghcr.io/labring-actions/devbox/debian-ssh-12.6:a9c28d

RUN cd /home/sealos/project && \
rm -rf ./*
Expand Down
2 changes: 1 addition & 1 deletion Language/go/1.23.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/labring-actions/devbox/debian-ssh-12.6:d8b67a
FROM ghcr.io/labring-actions/devbox/debian-ssh-12.6:a9c28d

RUN cd /home/sealos/project && \
rm -rf ./*
Expand Down
1 change: 1 addition & 0 deletions Language/go/project/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/bash
go run main.go
10 changes: 8 additions & 2 deletions Language/go/project/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
package main

import (
"fmt"
"fmt"
"net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, World!")
}

func main() {
fmt.Println("Hello World!")
http.HandleFunc("/", handler)
http.ListenAndServe(":8080", nil)
}

0 comments on commit 81b7ff3

Please sign in to comment.