dockerize image

This commit is contained in:
2019-03-06 18:43:52 -08:00
parent d7b8e82b5c
commit 092ee0218f
3 changed files with 41 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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"]