Quellcode durchsuchen

Загрузить файлы 'Server_Golang'

gr782_lva vor 3 Jahren
Ursprung
Commit
577dc4f0e6
3 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  1. 9 0
      Server_Golang/dockerfile
  2. 5 0
      Server_Golang/go.mod
  3. 2 0
      Server_Golang/go.sum

+ 9 - 0
Server_Golang/dockerfile

@@ -0,0 +1,9 @@
+FROM golang:latest
+
+WORKDIR /app
+COPY go.mod go.sum ./
+RUN go mod download
+COPY . .
+RUN go build -o main.go .
+EXPOSE 80
+CMD ["./main.go"]

+ 5 - 0
Server_Golang/go.mod

@@ -0,0 +1,5 @@
+module github.com/you/hello
+
+go 1.17
+
+require github.com/go-chi/chi v1.5.4 // indirect

+ 2 - 0
Server_Golang/go.sum

@@ -0,0 +1,2 @@
+github.com/go-chi/chi v1.5.4 h1:QHdzF2szwjqVV4wmByUnTcsbIg7UGaQ0tPF2t5GcAIs=
+github.com/go-chi/chi v1.5.4/go.mod h1:uaf8YgoFazUOkPBG7fxPftUylNumIev9awIWOENIuEg=