|
1 | 1 | #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. |
2 | | - |
3 | | -FROM mcr.microsoft.com/dotnet/runtime:8.0-bookworm-slim AS base |
4 | | -MAINTAINER Yanhong Ma 2024 |
5 | | -RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free" > /etc/apt/sources.list && \ |
6 | | - echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free" >> /etc/apt/sources.list && \ |
7 | | - echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free" >> /etc/apt/sources.list && \ |
8 | | - apt-get -y -q update && apt-get install -y --no-install-recommends -q apt-utils lsof net-tools wget curl iputils-ping inetutils-tools && \ |
| 2 | +FROM mcr.microsoft.com/dotnet/runtime:10.0 AS base |
| 3 | +RUN apt-get -y -q update && apt-get install -y --no-install-recommends -q apt-utils lsof net-tools wget curl iputils-ping inetutils-tools && \ |
9 | 4 | apt-get autoremove -y && apt-get clean && apt-get autoclean && rm /var/cache/apt/* -rf && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
10 | | -RUN curl -o TDengine-client.tar.gz "https://www.taosdata.com/assets-download/3.0/TDengine-client-3.3.3.0-Linux-x64.tar.gz" && \ |
11 | | - tar -xvf TDengine-client.tar.gz && rm TDengine-client.tar.gz -f && cd $(ls TDengine-client* -d) && \ |
| 5 | +RUN curl -o tdengine-tsdb-oss-client.tar.gz "https://downloads.taosdata.com/tdengine-tsdb-oss/3.3.8.8/tdengine-tsdb-oss-client-3.3.8.8-linux-x64.tar.gz" && \ |
| 6 | + tar -xvf tdengine-tsdb-oss-client.tar.gz && rm tdengine-tsdb-oss-client.tar.gz -f && cd $(ls tdengine-tsdb-oss-client* -d) && \ |
12 | 7 | ./install_client.sh && \ |
13 | 8 | rm $(pwd) -rf |
14 | 9 | WORKDIR /app |
15 | 10 |
|
16 | | -FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim AS build |
| 11 | +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build |
17 | 12 | WORKDIR /src |
18 | 13 |
|
19 | 14 | COPY ["src/Example/Example.csproj", "src/Example/"] |
20 | 15 | COPY ["src/IoTSharp.Data.Taos/IoTSharp.Data.Taos.csproj", "src/IoTSharp.Data.Taos/"] |
21 | | -COPY ["src/EFCore.Taos.Core/IoTSharp.EntityFrameworkCore.Taos.csproj", "src/EFCore.Taos.Core/"] |
22 | 16 | COPY ["src/LICENSE", "LICENSE"] |
23 | 17 | RUN dotnet restore "src/Example/Example.csproj" |
24 | 18 | COPY . . |
|
0 commit comments