forked from Watermelon914/cw-ss13
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (42 loc) · 1.63 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ARG BYOND_BASE_IMAGE=i386/ubuntu:bionic
FROM ${BYOND_BASE_IMAGE} AS byond
SHELL ["/bin/bash", "-c"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y make man curl unzip libssl-dev
ARG BYOND_MAJOR=513
ARG BYOND_MINOR=1536
ARG BYOND_DOWNLOAD_URL=https://secure.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip
RUN curl ${BYOND_DOWNLOAD_URL} -o byond.zip \
&& unzip byond.zip \
&& rm -rf byond.zip
WORKDIR /byond
RUN make here
RUN DEBIAN_FRONTEND=noninteractive apt-get clean && rm -rf /var/lib/apt/lists/*
FROM node:15-buster AS tgui-build
COPY tgui /tgui
WORKDIR /tgui
RUN chmod u+x bin/tgui && bin/tgui
FROM byond AS cm-build
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y python3.7 python3-pip
RUN pip3 install python-dateutil requests beautifulsoup4 pyyaml
COPY . /build
WORKDIR /build
COPY --from=tgui-build /tgui tgui
ARG DM_PROJECT_NAME=ColonialMarinesALPHA
RUN source /byond/bin/byondsetup && DreamMaker ${DM_PROJECT_NAME}.dme
FROM byond AS cm-runner
ENV DREAMDAEMON_PORT=1400
RUN mkdir -p /cm/data
WORKDIR /cm
COPY --from=cm-build /build/config config
COPY --from=cm-build /build/maps maps
ARG RUSTG_VERSION=0.4.7
ARG RUSTG_URL=https://github.com/tgstation/rust-g/releases/download/${RUSTG_VERSION}/librust_g.so
ADD ${RUSTG_URL} librust_g.so
ARG DM_PROJECT_NAME=ColonialMarinesALPHA
COPY --from=cm-build /build/${DM_PROJECT_NAME}.rsc application.rsc
COPY --from=cm-build /build/${DM_PROJECT_NAME}.dmb application.dmb
COPY tools/runner-entrypoint.sh /entrypoint.sh
COPY nano nano
COPY map_config map_config
RUN chmod u+x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]