Merge pull request #51 from brainchild0/docker

improve docker image
This commit is contained in:
Tyler Akins 2022-01-26 10:00:28 -06:00 committed by GitHub
commit b31a97cfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,7 @@
FROM alpine:3.13.4
FROM alpine
COPY ./mo .
RUN apk add --update bash && \
chmod +x mo &&\
mv mo /usr/local/bin/mo && \
rm -rf /var/cache/apk/*
RUN apk add --no-cache bash
ADD mo /usr/local/bin/mo
RUN chmod +x /usr/local/bin/mo
WORKDIR /opt
ENTRYPOINT ["/usr/local/bin/mo"]
ENTRYPOINT usr/local/bin/mo