cerebry commited on
Commit
54bede1
·
1 Parent(s): 206cfaa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official golang image as the base image
2
+ FROM golang:1.17
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy the chisel binary from the latest release
8
+ COPY --from=jpillora/chisel:latest /app/chisel /app/chisel
9
+
10
+ # Expose port 8080 for HTTP and port 8443 for HTTPS
11
+ EXPOSE 8080 8443
12
+
13
+ # Run the chisel server with default options
14
+ CMD ["/app/chisel", "server"]