-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (21 loc) · 757 Bytes
/
Dockerfile
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
FROM --platform=linux/amd64 ghcr.io/maldorne/dgd:latest
LABEL org.opencontainers.image.source=https://github.com/maldorne/hexagon
LABEL org.opencontainers.image.description="Hexagon Mudlib"
LABEL org.opencontainers.image.licenses="Pending"
USER root
RUN apt-get update
# temporary, will be removed from final image
RUN apt-get install -y --force-yes procps telnet
# clone the full contents of the mudlib
WORKDIR /opt/mud
COPY --chown=mud:mud .config.dgd start.sh hexagon/
COPY --chown=mud:mud mudlib hexagon/mudlib/
# reuse the same user created by the dgd:latest image
USER mud
# finishing touches
WORKDIR /opt/mud/hexagon
RUN mv .config.dgd ../bin/config.dgd
RUN chmod +x start.sh
ENTRYPOINT ./start.sh
# expose telnet mudos port
EXPOSE 5000/tcp