aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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"]