aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 576f3b4ef576c00697e5628d6656e328eb9f96d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"]