P
P
Pryby2021-05-06 17:13:17
go
Pryby, 2021-05-06 17:13:17

How to run docker with binary compiled from go?

made binaries, but for some reason does not want to run, says that there is no file, although through ls it shows that it is there.

FROM alpine:3.10.1
RUN mkdir -p /app
WORKDIR /app
COPY ./cmd/client/bin /app
ENTRYPOINT chmod 666 ["./client"]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-05-06
@shurshur

Why is ENTRYPOINT being chmoded? You just need ./client or even the full path /app/client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question