代码拉取完成,页面将自动刷新
# -----------------------------------------------------------
# Creates a Docker image by building and publishing
# the source within the container
# -----------------------------------------------------------
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
# Copy solution and source
ARG SOLUTION=Smartstore.sln
WORKDIR /app
COPY $SOLUTION ./
COPY src/ ./src
COPY test/ ./test
COPY nuget.config ./
# Create Modules dir if missing
RUN mkdir /app/src/Smartstore.Web/Modules -p -v
# Build
RUN dotnet build $SOLUTION -c Release
# Publish
WORKDIR /app/src/Smartstore.Web
RUN dotnet publish Smartstore.Web.csproj -c Release -o /app/release/publish \
--no-self-contained \
--no-restore
# Build Docker image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
EXPOSE 80
EXPOSE 443
ENV ASPNETCORE_URLS="http://+:80;https://+:443"
WORKDIR /app
COPY --from=build /app/release/publish .
# Install wkhtmltopdf
RUN apt update &&\
apt -y install wget &&\
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb &&\
apt -y install ./wkhtmltox_0.12.6.1-3.bookworm_amd64.deb &&\
rm ./wkhtmltox_0.12.6.1-3.bookworm_amd64.deb
ENTRYPOINT ["./Smartstore.Web", "--urls", "http://0.0.0.0:80"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。