Skip to content

Instantly share code, notes, and snippets.

@Altai-man
Created November 19, 2020 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Altai-man/89e8181b2d22054adfffcbd6ac1ad01e to your computer and use it in GitHub Desktop.
Save Altai-man/89e8181b2d22054adfffcbd6ac1ad01e to your computer and use it in GitHub Desktop.
FROM fedora:32
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN yum install -y nodejs graphviz openssl-devel redhat-lsb-core
RUN echo -e "[rakudo-pkg]\nname=rakudo-pkg\nbaseurl=https://dl.bintray.com/nxadm/rakudo-pkg-rpms/`lsb_release -is`/`lsb_release -rs| cut -d. -f1`/x86_64\ngpgcheck=0\nenabled=1" | sudo tee -a /etc/yum.repos.d/rakudo-pkg.repo
RUN dnf install -y rakudo-pkg
RUN /opt/rakudo-pkg/bin/install-zef-as-user
ENV DOCKY_PORT="10000" DOCKY_HOST="0.0.0.0" PATH="~/.raku/bin:${PATH}"
RUN zef update
RUN zef install --deps-only . && raku -c -Ilib service.p6
EXPOSE 10000
CMD raku -Ilib service.p6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment