18 lines
235 B
Docker
18 lines
235 B
Docker
FROM golang:1.14
|
|
|
|
ADD . /tmp/code
|
|
|
|
RUN cd /tmp/code && make
|
|
|
|
FROM ubuntu:eoan
|
|
|
|
COPY --from=0 /tmp/code/redis-sentinel-proxy /usr/local/bin/redis-sentinel-proxy
|
|
|
|
ADD start /start
|
|
|
|
RUN chmod +x /start
|
|
|
|
USER nobody
|
|
|
|
ENTRYPOINT ["/start"]
|