More Dockerfile tweaks

parent 4bad6bdc
......@@ -4,11 +4,16 @@
# Warning: I haven't tested to see if it works yet!!!
#
FROM alpine:latest
COPY . /var/opt/dukboot
WORKDIR /var/opt/dukboot
RUN apk add --no-cache build-base && \
RUN apk add --no-cache build-base git && \
cd /tmp && \
git clone https://gitlab.com/dukboot/dukboot && \
cd dukboot && \
make && \
mv dukboot /bin/dukboot && \
apk del --no-cache --purge build-base && \
rm -rf /var/opt/dukboot
mkdir -p /var/local/dukboot && \
mv dukboot /var/local/dukboot/dukboot && \
mv js /var/local/dukboot/js && \
ln /usr/local/bin/dukboot /var/local/dukboot/dukboot && \
cd /tmp && \
rm -rf dukboot && \
apk del --no-cache --purge build-base git
ENTRYPOINT dukboot
FROM dukboot/dukboot:latest
COPY ../../examples /home/examples
WORKDIR /home
ENTRYPOINT dukboot examples/test/parent.js
COPY . .
ENTRYPOINT dukboot hello.js
function (imports) {
imports.stdio.print('Hello, World!')
}
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