Dockerfile 459 B

123456789101112
  1. FROM mono:5.4.0.201 as builder
  2. COPY . /tmp/
  3. WORKDIR /tmp
  4. RUN msbuild /t:restore /t:build /p:Configuration=Release && \
  5. rm /tmp/OhmGraphite/bin/Release/net46/OhmGraphite.exe.config
  6. FROM mono:5.4.0.201
  7. COPY --from=builder /tmp/OhmGraphite/bin/Release/net46 /opt/OhmGraphite
  8. COPY --from=builder /tmp/OhmGraphite/NLog.docker.config /opt/OhmGraphite/NLog.config
  9. WORKDIR /opt/OhmGraphite
  10. VOLUME /opt/OhmGraphite/OhmGraphite.exe.config
  11. CMD mono OhmGraphite.exe