jokyo3 commited on
Commit
ec33114
1 Parent(s): 468c9d1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Golang runtime as a base image
2
+ FROM golang:1.17
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /go/src/app
6
+
7
+ # Copy the local package files to the container's workspace
8
+ COPY . .
9
+
10
+ # Build the Go application
11
+ RUN go build -o main .
12
+
13
+ # Expose port 7860 to the outside world
14
+ EXPOSE 7860
15
+
16
+ # Command to run the executable
17
+ CMD ["./main"]