浏览代码

dockerfile 调整

master
杨雷 6 个月前
父节点
当前提交
65ebdeb865
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      TelpoPush.Worker.ThirdSsl/Dockerfile

+ 2
- 2
TelpoPush.Worker.ThirdSsl/Dockerfile 查看文件

@@ -28,13 +28,13 @@ RUN dotnet publish "./TelpoPush.Worker.ThirdSsl.csproj" -c $BUILD_CONFIGURATION
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
COPY pem /app/pem
COPY pem/app/pem


ENV environment=Development
ENV TimeZone=Asia/Shanghai
ENV LANG C.UTF-8
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
#RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

#ENTRYPOINT ["dotnet", "TelpoPush.Worker.ThirdSsl.dll"]
ENTRYPOINT ["sh", "-c", "dotnet TelpoPush.Worker.ThirdSsl.dll --environment=$environment"]

正在加载...
取消
保存