Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jirikivaari committed Apr 29, 2018
1 parent 825092e commit 6f09e6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ COPY src/*.sma /home/amxx/build/base/addons/amxmodx/scripting/
COPY src/include/* /home/amxx/build/base/addons/amxmodx/scripting/include

WORKDIR /home/amxx/build/base/addons/amxmodx/scripting
RUN ./amxxpc ENSL.sma && cp ENSL.amxx /home/amxx/build && \
RUN mkdir -p /home/amxx/build/base/addons/amxmodx/plugins && \
./amxxpc ENSL.sma && \
./amxxpc extralevels3.sma && \
./amxxpc hiveccstatus.sma
./amxxpc hiveccstatus.sma && \
cp *.amxx /home/amxx/build/base/addons/amxmodx/plugins/ && \
cp *.amxx /home/amxx/build

WORKDIR /home/amxx/build

# Then just copy the files we need. No extra.
RUN mkdir -p pkg/addons/amxmodx && \
cp -ra base/addons/metamod pkg/addons/metamod && \
RUN cp -ra base/addons/metamod pkg/addons/ && \
cp -ra base/addons/amxmodx/modules pkg/addons/amxmodx/ && \
cp -ra base/addons/amxmodx/plugins pkg/addons/amxmodx/ && \
cp -ra base/addons/amxmodx/data pkg/addons/amxmodx/ && \
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash

mv /home/amxx/build/* /var/build

cd /var/build/pkg
find . -type f
bash

0 comments on commit 6f09e6a

Please sign in to comment.