-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
38 lines (28 loc) · 960 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
31
32
33
34
35
36
37
38
FROM xales/byond:512-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;\
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 xales/byond:512-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
EXPOSE 8000
VOLUME /bs12/data
VOLUME /bs12/config
ENTRYPOINT ["./docker-entrypoint.sh"]