## syntax=docker/dockerfile:1 FROM golang:1.18-alpine WORKDIR /build # Copy all the source files #RUN apk update #RUN apk add unzip curl #RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" #RUN unzip awscliv2.zip #RUN ./aws/install COPY . . WORKDIR capital RUN go mod tidy RUN go mod vendor RUN go build -o app . EXPOSE 5001 CMD ["./app", "run"] #docker build -f ./capital/Dockerfile -t capital:0.0.2 .