Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
0b637906
IoTSharp
项目概览
IoTSharp
/
IoTSharp
10 个月 前同步成功
通知
15
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
IoTSharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0b637906
编写于
7月 18, 2021
作者:
麦壳饼
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改docker
上级
d95bd9d2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
18 deletion
+22
-18
IoTSharp/Dockerfile
IoTSharp/Dockerfile
+22
-18
未找到文件。
IoTSharp/Dockerfile
浏览文件 @
0b637906
...
...
@@ -10,9 +10,9 @@ RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib n
apt-get
-y
-q
update
&&
apt-get
install
-y
-q
apt-utils libgdiplus libc6-dev lsof net-tools wget sqlite3 python3 bashtop iputils-ping inetutils-tools libssl-dev libssl1.0.0 curl
&&
\
apt-get autoremove
-y
&&
apt-get clean
&&
apt-get autoclean
&&
rm
/var/cache/apt/
*
-rf
&&
\
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN
curl
-o
TDengine-client.tar.gz
"https://www.taosdata.com/download/download-gettingStarted.php?pkg=tdengine_linux&pkgName=TDengine-client-2.0.12.0-Linux-x64.tar.gz"
&&
\
tar
-xzvf
TDengine-client.tar.gz
&&
rm
TDengine-client.tar.gz
-f
&&
cd
$(
ls
TDengine-client
*
-d
)
&&
./install_client.sh
&&
\
rm
$(
pwd
)
-rf
#
RUN curl -o TDengine-client.tar.gz "https://www.taosdata.com/download/download-gettingStarted.php?pkg=tdengine_linux&pkgName=TDengine-client-2.0.12.0-Linux-x64.tar.gz" && \
#
tar -xzvf TDengine-client.tar.gz && rm TDengine-client.tar.gz -f && cd $(ls TDengine-client* -d) && ./install_client.sh && \
#
rm $(pwd) -rf
RUN
echo
"fs.file-max=6553500"
>>
/etc/sysctl.conf
&&
\
echo
"* soft nofile 65535"
>>
/etc/security/limits.conf
&&
\
echo
"* hard nofile 65535"
>>
/etc/security/limits.conf
&&
\
...
...
@@ -28,14 +28,26 @@ EXPOSE 8080
FROM
mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build
RUN
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free"
>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free"
>>
/etc/apt/sources.list
&&
\
apt-get
-y
-q
update
&&
apt-get
install
-y
-q
git libssl-dev curl gnupg libcurl4 libssl1.0.0
&&
\
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
\
apt-get autoremove
-y
&&
apt-get clean
&&
apt-get autoclean
&&
rm
/var/cache/apt/
*
-rf
apt-get
-y
-q
update
&&
apt-get
install
-y
-q
git libssl-dev curl gnupg libcurl4
&&
\
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN
curl
-fsSL
https://deb.nodesource.com/setup_lts.x | bash -
&&
\
apt-get
install
-y
-q
nodejs
&&
\
apt remove cmdtest
&&
\
apt remove yarn
&&
\
curl
-sL
https://dl.yarnpkg.com/debian/pubkey.gpg | gpg
--dearmor
|
tee
/usr/share/keyrings/yarnkey.gpg
>
/dev/null
&&
\
echo
"deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main"
|
tee
/etc/apt/sources.list.d/yarn.list
&&
\
apt-get
install
-y
-q
yarn
RUN
apt-get autoremove
-y
&&
apt-get clean
&&
apt-get autoclean
&&
rm
/var/cache/apt/
*
-rf
WORKDIR
/src
COPY
["IoTSharp/IoTSharp.csproj", "IoTSharp/"]
COPY
["IoTSharp.Data/IoTSharp.Data.csproj", "IoTSharp.Data/"]
...
...
@@ -48,19 +60,12 @@ RUN dotnet restore "IoTSharp/IoTSharp.csproj"
COPY
. .
WORKDIR
"/src/IoTSharp"
RUN
dotnet build
"IoTSharp.csproj"
-c
Release
-o
/app/build
FROM
node:14-buster AS web
WORKDIR
/web
RUN
npm config
set
registry http://registry.npm.taobao.org/
&&
\
yarn config
set
registry http://registry.npm.taobao.org/
COPY
../ClientApp/Vue/package*.json ./
COPY
../ClientApp/Vue/package*.json .
RUN
yarn
install
COPY
../ClientApp/Vue ./
COPY
../ClientApp/Vue .
RUN
yarn build
FROM
build AS publish
RUN
dotnet publish
"IoTSharp.csproj"
-c
Release
-o
/app/publish
...
...
@@ -68,5 +73,4 @@ RUN dotnet publish "IoTSharp.csproj" -c Release -o /app/publish
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app/publish .
COPY
--from=web /web/dist ./wwwroot
ENTRYPOINT
["dotnet", "IoTSharp.dll"]
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录