forked from infinitystation/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (31 loc) · 1.08 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
FROM tgstation/byond:latest
ENV PATH=/root/cargo/bin:/root/rustup/bin:$PATH\
CARGO_HOME=/root/cargo\
RUSTUP_HOME=/root/rustup
RUN apt-get update && apt-get install -y curl git gcc-multilib apt-utils;\
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path;\
rm rustup-init;\
rustup default stable;\
rustup target add i686-unknown-linux-gnu
RUN git clone https://github.com/Lohikar/byhttp.git || true
WORKDIR /byhttp
RUN mkdir to_copy;\
cargo build --release --target i686-unknown-linux-gnu;\
mv -t to_copy target/i686-unknown-linux-gnu/release/libbyhttp.so || true
FROM tgstation/byond:latest
ARG BUILD_ARGS
ENV RUNAS=root
COPY . /bs12
COPY --from=0 /byhttp/to_copy /bs12/lib
WORKDIR /bs12
RUN apt-get update && apt-get install -y gosu
RUN scripts/dm.sh $BUILD_ARGS baystation12.dme
#RUN mkdir /byond; \
# chown -R $RUNAS:$RUNAS /byond /bs12 baystation12.rsc; \
# DreamDaemon baystation12.dmb 8000 -trusted -verbose
EXPOSE 8000
VOLUME /bs12/data
VOLUME /bs12/config
ENTRYPOINT ["./docker-entrypoint.sh"]