ADD file:d0764a717d1e9d0aff3fa84779b11bfa0afe4430dcb6b46d965b209167639ba0 in / |
CMD ["/bin/sh"] |
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
ENV GOLANG_VERSION=1.20.14 |
ENV GOPATH=/go |
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY /usr/local/go/ /usr/local/go/ # buildkit |
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
WORKDIR /go |
COPY . . # buildkit |
WORKDIR /go/web |
RUN /bin/sh -c go mod download # buildkit |
RUN /bin/sh -c go build -o simplytranslate # buildkit |
EXPOSE map[5000/tcp:{}] |
CMD ["./simplytranslate"] |