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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -6
Dockerfile CHANGED
@@ -1,9 +1,18 @@
1
- FROM alpine:3.14
 
2
 
3
- RUN apk add --no-cache curl
 
4
 
5
- RUN curl -L -o /usr/local/bin/chisel https://github.com/jpillora/chisel/releases/download/v1.7.6/chisel_1.7.6_linux_amd64.gz \
6
- && gunzip /usr/local/bin/chisel \
7
- && chmod +x /usr/local/bin/chisel
8
 
9
- ENTRYPOINT ["/usr/local/bin/chisel"]
 
 
 
 
 
 
 
 
 
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
6
 
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
+
17
+ # Set default arguments for chisel
18
+ CMD ["server", "--port", "8080"]