Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/net9.0/devanewbot.dll",
"program": "${workspaceFolder}/bin/Debug/net10.0/devanewbot.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
Expand Down
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base

WORKDIR /app
EXPOSE 5010


ENV ASPNETCORE_URLS=http://+:5010

RUN apt-get update && \
apt-get install wget unzip curl jq \
perl perl-base perl-modules libclone-perl libdate-manip-perl libdatetime-format-strptime-perl libdatetime-perl libjson-perl libmath-bigint-perl libmath-round-perl libswitch-perl libtext-csv-perl liburi-perl -y
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-dotnet-configure-containers
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
USER appuser

FROM node:18-bullseye-slim AS vuebuild
FROM node:24 AS vuebuild
WORKDIR /src
COPY ["vue", "vue"]
WORKDIR "/src/vue"
RUN npm ci
RUN export NODE_OPTIONS=--openssl-legacy-provider && \
npm run build
RUN npm run build

FROM mcr.microsoft.com/dotnet/sdk:9.0 AS publish
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish
WORKDIR /src
COPY . .
WORKDIR "/src"
Expand All @@ -35,4 +29,5 @@ COPY --from=vuebuild /src/wwwroot wwwroot
RUN wget https://github.com/molo1134/qrmbot/archive/refs/heads/master.zip && \
unzip master.zip && \
mv qrmbot-master qrmbot
USER appuser
ENTRYPOINT ["dotnet", "devanewbot.dll"]
18 changes: 9 additions & 9 deletions devanewbot.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<VersionPrefix>1.0.0</VersionPrefix>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AspNetCore.ReCaptcha" Version="1.8.2" />
<PackageReference Include="Discord.NET" Version="3.18.0" />
<PackageReference Include="Discord.NET" Version="3.19.0" />
<PackageReference Include="Flurl" Version="4.0.0" />
<PackageReference Include="Flurl.Http" Version="4.0.2" />
<PackageReference Include="Hangfire" Version="1.8.22" />
<PackageReference Include="Hangfire" Version="1.8.23" />
<PackageReference Include="Hangfire.Redis.StackExchange" Version="1.12.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.12.4" />
<PackageReference Include="Magick.NET-Q16-HDRI-AnyCPU" Version="13.10.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.22" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.22">
<PackageReference Include="Magick.NET-Q16-HDRI-AnyCPU" Version="14.10.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.11" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0" />
<PackageReference Include="RollbarDotNet" Version="0.8.0-beta-6061" />
<PackageReference Include="SlackNet.AspNetCore" Version="0.17.6" />
<PackageReference Include="WebSocketExtensions" Version="2.14.0" />
<PackageReference Include="SlackNet.AspNetCore" Version="0.17.9" />
<PackageReference Include="WebSocketExtensions" Version="3.0.1" />
</ItemGroup>

</Project>
Loading