aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorcodecrafters-bot <hello@codecrafters.io>2024-06-02 20:04:15 +0000
committercodecrafters-bot <hello@codecrafters.io>2024-06-02 20:04:15 +0000
commitbab5e32bd62071304ec1cd865859e685bf6d9b23 (patch)
treecb07d921130962c3887f3570ed70e45553879f83 /Dockerfile
downloaddocker-go-bab5e32bd62071304ec1cd865859e685bf6d9b23.tar.gz
docker-go-bab5e32bd62071304ec1cd865859e685bf6d9b23.zip
init [skip ci]
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..576f3b4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,15 @@
+FROM golang:1.22-alpine
+
+RUN apk add --no-cache 'curl>=7.66'
+
+# Download docker-explorer
+ARG docker_explorer_version=v18
+RUN curl -Lo /usr/local/bin/docker-explorer https://github.com/codecrafters-io/docker-explorer/releases/download/${docker_explorer_version}/${docker_explorer_version}_linux_amd64
+RUN chmod +x /usr/local/bin/docker-explorer
+
+COPY . /app
+WORKDIR /app
+
+RUN sed -i -e 's/\r$//' /app/your_docker.sh
+
+ENTRYPOINT ["/app/your_docker.sh"]