Skip to content

Commit

Permalink
Merge pull request #1988 from mathuin/Dockerfile-for-cake
Browse files Browse the repository at this point in the history
Docker updates to support cake!
  • Loading branch information
dbent committed Jan 20, 2017
2 parents f19213e + 8e26233 commit 1f1f729
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN chmod +x /root/cleanup.sh
RUN echo 'trap /root/cleanup.sh EXIT\n\
ckan()\n\
{\n\
mono /build/CmdLine.exe "$@" --kspdir /kspdir --headless\n\
mono /build/ckan.exe "$@" --kspdir /kspdir --headless\n\
}\n\
ckan update\n\
' >> /root/.bashrc
Expand All @@ -54,6 +54,9 @@ RUN mkdir /kspdir
VOLUME ["/kspdir"]
COPY . /source
WORKDIR /source
RUN nuget restore -NonInteractive
RUN xbuild /property:Configuration=Release /property:OutDir=/build/
ARG config
ENV config ${config:-Release}
RUN ./build --configuration=${config}
RUN mkdir /build
RUN cp _build/repack/${config}/ckan.exe /build/ckan.exe
ENTRYPOINT ["/root/entrypoint.sh"]

0 comments on commit 1f1f729

Please sign in to comment.