Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +15 -6
Dockerfile
CHANGED
|
@@ -1,9 +1,18 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
&& chmod +x /usr/local/bin/chisel
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|