cerebry commited on
Commit
d447bd4
·
1 Parent(s): 9ebe8bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use an official golang runtime as a parent image
2
- FROM golang:1.16-alpine
3
 
4
  # Set the working directory in the container to /app
5
  WORKDIR /app
@@ -7,10 +7,13 @@ WORKDIR /app
7
  # Copy the local package files to the container's workspace.
8
  ADD . /app
9
 
10
- # Build the chisel command inside the container.
11
- RUN go get github.com/jpillora/chisel
12
  RUN go install github.com/jpillora/chisel@latest
13
 
 
 
 
14
  # Run the chisel command when the container starts.
15
  ENTRYPOINT ["chisel"]
16
 
 
1
  # Use an official golang runtime as a parent image
2
+ FROM golang:1.16-buster
3
 
4
  # Set the working directory in the container to /app
5
  WORKDIR /app
 
7
  # Copy the local package files to the container's workspace.
8
  ADD . /app
9
 
10
+ # Download and install the chisel package
11
+ RUN go get -v github.com/jpillora/chisel
12
  RUN go install github.com/jpillora/chisel@latest
13
 
14
+ # Expose port 8080 for the chisel server
15
+ EXPOSE 8080
16
+
17
  # Run the chisel command when the container starts.
18
  ENTRYPOINT ["chisel"]
19