mirror of
https://github.com/ThingsGateway/ThingsGateway.git
synced 2026-10-23 17:12:15 +08:00
10 lines
518 B
Docker
10 lines
518 B
Docker
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
|
COPY . /app
|
|
WORKDIR /app
|
|
EXPOSE 80
|
|
#linux安装
|
|
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free" > /etc/apt/sources.list
|
|
RUN apt-get update && apt-get -y install libfontconfig1
|
|
ENTRYPOINT ["dotnet", "ThingsGateway.Web.Server.dll","--urls","http://*:5000"] |