Browse Source

Remove unnecessary bash script in mofuw setup (#3632)

* Remove unnecessary bash script in mofuw setup

* Remove line left over from debugging
Michael Hixson 7 years ago
parent
commit
a0776f5768
2 changed files with 6 additions and 15 deletions
  1. 6 8
      frameworks/Nim/mofuw/mofuw.dockerfile
  2. 0 7
      frameworks/Nim/mofuw/start-servers.sh

+ 6 - 8
frameworks/Nim/mofuw/mofuw.dockerfile

@@ -14,17 +14,15 @@ RUN apt update -yqq &&                                                  \
     ./koch nimble &&                                                    \
     ./koch tools
 
-ENV PATH=$PATH:/nim/nim-devel/bin:/root/.nimble/bin
+ENV PATH $PATH:/nim/nim-devel/bin:/root/.nimble/bin
 
+WORKDIR /mofu_framework
 RUN git clone https://github.com/2vg/mofuw.git && \
     cd mofuw && \
     nimble update && \
     echo 'y' | nimble install
 
-WORKDIR /app
-
-COPY ./ /app
-
-RUN chmod a+wrx start-servers.sh
-
-CMD ./start-servers.sh
+WORKDIR /mofuw_app
+COPY techempower.nim techempower.nim
+RUN nim c -d:release --threads:on techempower.nim
+CMD ["./techempower"]

+ 0 - 7
frameworks/Nim/mofuw/start-servers.sh

@@ -1,7 +0,0 @@
-#!/bin/bash
-
-nim c -d:release --threads:on techempower.nim
-
-./techempower
-
-wait