Files
MASA.Blazor/Dockerfile
capdiem 2b791f9c81 refactor: Update the directory structure (#1012)
* move the test directory to the root

* remove the old documents

* move the docs directory to the root

* 🔧 chore: update workflows and slns

* remove incorrect tests

* 🔧 chore: update references

* 🙈 chore: update .gitignore

* 🙈 chore: update .gitignore
2023-02-14 18:05:12 +08:00

16 lines
771 B
Docker

# FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base
# RUN curl -fsSL https://deb.nodesource.com/setup_current.x | bash - && apt-get install -y nodejs
# RUN apt-get update && apt-get install -y libfontconfig1
FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_sdk:7.0_nodejs17_libfontconfig1
# FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_sdk:6.0.100_nodejs16_libfontconfig1
# FROM registry.cn-hangzhou.aliyuncs.com/masa/dotnet_sdk:6.0.100-preview.7-nodejs14.16.1
# RUN apt-get update && apt-get install -y libfontconfig1
ENV LANG="zh_CN.UTF-8"
ENV LANGUAGE="zh_CN:zh"
ENV ASPNETCORE_URLS=http://0.0.0.0:5000
WORKDIR /app
COPY . .
RUN dotnet build docs/Masa.Docs.Server -c Release
ENTRYPOINT ["dotnet","./docs/Masa.Docs.Server/bin/Release/net7.0/Masa.Docs.Server.dll"]