cerebry commited on
Commit
43ae6ca
·
1 Parent(s): 54bede1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -11
Dockerfile CHANGED
@@ -1,14 +1,9 @@
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"]
 
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"]