-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 998 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (18 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:latest
ENV PATH="/home/raku/.raku/bin:/opt/rakudo-pkg/bin:${PATH}"
RUN apk update && apk add openssl bash curl wget perl openssl-dev sqlite sqlite-dev sudo git build-base libffi-dev
RUN apk add --no-cache --wait 120 -u --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community zef raku-sparrow6 raku-sparky-job-api
RUN adduser -D -h /home/raku -s /bin/bash -G wheel raku
RUN echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN addgroup raku wheel
RUN sudo echo
USER raku
RUN zef install --/test --force-install https://github.com/melezhik/sparky.git
RUN zef install --/test --force-install https://github.com/melezhik/Sparrow6.git
RUN zef install --/test --force-install https://github.com/melezhik/sparrowdo.git
RUN git clone https://github.com/melezhik/sparky.git /home/raku/Sparky
WORKDIR /home/raku/Sparky
RUN ls -l && raku db-init.raku
EXPOSE 4000
RUN cp -r examples/hello-world/ /home/raku/.sparky/projects/
ENTRYPOINT nohup sparkyd 2>&1 1>/tmp/out.log & cro run