浏览代码

Update dockerfile for latest mono

Nick Babcock 6 年之前
父节点
当前提交
4b05de7d97
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      Dockerfile

+ 5 - 5
Dockerfile

@@ -1,11 +1,11 @@
-FROM mono:5.4.0.201 as builder
+FROM mono:5.12 as builder
 COPY . /tmp/
 WORKDIR /tmp
-RUN msbuild /t:restore /t:build /p:Configuration=Release && \
-    rm /tmp/OhmGraphite/bin/Release/net46/OhmGraphite.exe.config
+RUN msbuild /t:restore /t:build /p:Configuration=Release;TargetFrameworkVersion=v4.6.1 && \
+    rm /tmp/OhmGraphite/bin/Release/net461/OhmGraphite.exe.config
 
-FROM mono:5.4.0.201
-COPY --from=builder /tmp/OhmGraphite/bin/Release/net46 /opt/OhmGraphite
+FROM mono:5.12
+COPY --from=builder /tmp/OhmGraphite/bin/Release/net461 /opt/OhmGraphite
 COPY --from=builder /tmp/OhmGraphite/NLog.docker.config /opt/OhmGraphite/NLog.config
 WORKDIR /opt/OhmGraphite
 VOLUME /opt/OhmGraphite/OhmGraphite.exe.config