Skip to content

Commit

Permalink
Sets up webhook docker stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
afterthought2 committed Jul 8, 2019
1 parent 12bdc10 commit 42d1b32
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
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

Expand Down

0 comments on commit 42d1b32

Please sign in to comment.