FROM --platform=linux/amd64 golang:1.23-alpine

RUN apk add curl git unzip

WORKDIR /app 

COPY . .

RUN chmod +x ./entrypoint.sh

RUN curl -fLo install.sh https://raw.githubusercontent.com/cosmtrek/air/master/install.sh \
    && chmod +x install.sh && sh install.sh && cp ./bin/air /bin/air

CMD ["./entrypoint.sh"]
