1 Star 2 Fork 2

CharlesJiang/garnet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.nanoserver-x64 537 Bytes
一键复制 编辑 原始数据 按行查看 历史
Badrish Chandramouli 提交于 2024-03-18 12:30 . Initial commit
FROM mcr.microsoft.com/dotnet/sdk:8.0-nanoserver-ltsc2022 AS build
WORKDIR /source
# Copy files
COPY . .
RUN dotnet restore
RUN dotnet build -c Release
# Copy and publish app and libraries
WORKDIR /source/main/GarnetServer
RUN dotnet publish -c Release -o /app -r win-x64 --self-contained false -f net8.0
# Final stage/image
FROM mcr.microsoft.com/dotnet/runtime:8.0-nanoserver-ltsc2022 AS runtime
WORKDIR /app
COPY --from=build /app .
# Run GarnetServer with an index size of 128MB
ENTRYPOINT ["/app/GarnetServer.exe", "-i", "128m"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/bljchartles/garnet.git
git@gitee.com:bljchartles/garnet.git
bljchartles
garnet
garnet
main

搜索帮助