Specify build dir in Dockerfile better

parent 442cef92
......@@ -4,10 +4,11 @@
# Warning: I haven't tested to see if it works yet!!!
#
FROM alpine:latest
COPY . .
COPY . /var/opt/dukboot
WORKDIR /var/opt/dukboot
RUN apk add --no-cache build-base && \
make && \
mv dukboot /bin/dukboot && \
apk del --no-cache --purge build-base && \
rm -rf ./*
rm -rf /var/opt/dukboot
ENTRYPOINT dukboot
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment