Dockerfile 481 B

123456789101112
  1. FROM mono:5.12 as builder
  2. COPY . /tmp/
  3. WORKDIR /tmp
  4. RUN msbuild /t:restore /t:build /p:Configuration=Release;TargetFrameworkVersion=v4.6.1 && \
  5. rm /tmp/OhmGraphite/bin/Release/net461/OhmGraphite.exe.config
  6. FROM mono:5.12
  7. COPY --from=builder /tmp/OhmGraphite/bin/Release/net461 /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