-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (38 loc) · 1.42 KB
/
Dockerfile
File metadata and controls
47 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ARG rakudo_version=latest
FROM rakudo-zef:$rakudo_version
ARG rakudo_version
LABEL maintainer="Geoffrey Broadwell"
LABEL org.opencontainers.image.source=https://github.com/Raku-MUGS/MUGS-Core
# Partially adapted from cro-http-websocket Dockerfile, maintained by
# Jonathan Worthington <[email protected]>
ARG cro_version=0.8.9
ARG cro_cbor_version=0.0.5
USER root:root
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
build-essential libsodium-dev libsqlite3-dev libssl-dev \
&& zef update \
&& zef install OpenSSL --force \
&& zef install NativeHelpers::Array \
&& zef install Crypt::SodiumPasswordHash \
&& zef install Pluggable \
&& zef install --/test --exclude="pq:ver<5>:from<native>" Red \
&& zef install 'Cro::Core:ver<'$cro_version'>' \
&& zef install 'Cro::TLS:ver<'$cro_version'>' \
&& zef install 'Cro::HTTP:ver<'$cro_version'>' \
&& zef install 'Cro::WebSocket:ver<'$cro_version'>' \
&& zef install --/test 'Cro::CBOR:ver<'$cro_cbor_version'>' \
&& rm -rf /root/.zef /tmp/.zef /tmp/* \
&& apt-get purge -y --auto-remove build-essential \
&& rm -rf /var/lib/apt/lists/*
USER raku:raku
WORKDIR /home/raku/MUGS/MUGS-Core
COPY . .
RUN zef install --deps-only --exclude="pq:ver<5>:from<native>" . \
&& zef install --/test . \
&& mugs-admin create-universe \
&& rm -rf /home/raku/.zef /tmp/.zef
ENV MUGS_WEBSOCKET_HOST="0.0.0.0"
ENV MUGS_WEBSOCKET_PORT="10000"
EXPOSE 10000
CMD ["mugs-ws-server"]