Revert changes to Dockerfile
This commit is contained in:
parent
92bc32ac53
commit
a8190ad91b
1 changed files with 5 additions and 15 deletions
|
|
@ -1,26 +1,16 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /script
|
||||
|
||||
RUN mkdir -p /app
|
||||
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
COPY steamcmd.sh /usr/local/bin/steamcmd
|
||||
|
||||
COPY . .
|
||||
RUN dotnet publish LANCommander.Server/LANCommander.Server.csproj -c Debug -o /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS base
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 1337
|
||||
EXPOSE 213/udp
|
||||
EXPOSE 35891/udp
|
||||
|
||||
COPY ./published /app
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
COPY steamcmd.sh /usr/local/bin/steamcmd
|
||||
|
||||
# Make entrypoint script executable
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/steamcmd
|
||||
|
||||
RUN mkdir -p /vsdbg
|
||||
RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l /vsdbg
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue