diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..3729ff0
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,25 @@
+**/.classpath
+**/.dockerignore
+**/.env
+**/.git
+**/.gitignore
+**/.project
+**/.settings
+**/.toolstarget
+**/.vs
+**/.vscode
+**/*.*proj.user
+**/*.dbmdl
+**/*.jfm
+**/azds.yaml
+**/bin
+**/charts
+**/docker-compose*
+**/Dockerfile*
+**/node_modules
+**/npm-debug.log
+**/obj
+**/secrets.dev.yaml
+**/values.dev.yaml
+LICENSE
+README.md
\ No newline at end of file
diff --git a/QRBeeApi/Dockerfile b/QRBeeApi/Dockerfile
new file mode 100644
index 0000000..f2e3c50
--- /dev/null
+++ b/QRBeeApi/Dockerfile
@@ -0,0 +1,23 @@
+#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
+
+FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
+WORKDIR /app
+EXPOSE 80
+EXPOSE 443
+
+FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
+WORKDIR /src
+COPY ["QRBeeApi/QRBee.Api.csproj", "QRBeeApi/"]
+COPY ["QRBee.Core/QRBee.Core.csproj", "QRBee.Core/"]
+RUN dotnet restore "QRBeeApi/QRBee.Api.csproj"
+COPY . .
+WORKDIR "/src/QRBeeApi"
+RUN dotnet build "QRBee.Api.csproj" -c Release -o /app/build
+
+FROM build AS publish
+RUN dotnet publish "QRBee.Api.csproj" -c Release -o /app/publish
+
+FROM base AS final
+WORKDIR /app
+COPY --from=publish /app/publish .
+ENTRYPOINT ["dotnet", "QRBee.Api.dll"]
\ No newline at end of file
diff --git a/QRBeeApi/Properties/launchSettings.json b/QRBeeApi/Properties/launchSettings.json
index 8f3ba71..4a3f33a 100644
--- a/QRBeeApi/Properties/launchSettings.json
+++ b/QRBeeApi/Properties/launchSettings.json
@@ -1,4 +1,4 @@
-{
+{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
@@ -11,14 +11,19 @@
"profiles": {
"QRBeeApi": {
"commandName": "Project",
- "dotnetRunMessages": true,
- "launchBrowser": false,
"launchUrl": "swagger",
- "applicationUrl": "https://localhost:7000;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"LOGS_ROOT": "C:\\Users\\andre\\logs"
- }
+ },
+ "applicationUrl": "https://localhost:7000;http://localhost:5000",
+ "dotnetRunMessages": true
+ },
+ "Docker": {
+ "commandName": "Docker",
+ "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
+ "publishAllPorts": true,
+ "useSSL": true
}
}
-}
+}
\ No newline at end of file
diff --git a/QRBeeApi/QRBee.Api.csproj b/QRBeeApi/QRBee.Api.csproj
index 9433e50..bd7fa32 100644
--- a/QRBeeApi/QRBee.Api.csproj
+++ b/QRBeeApi/QRBee.Api.csproj
@@ -5,6 +5,7 @@
enable
enable
3b7dc7f1-0b82-4746-b99b-73c43c8826e0
+ Linux
@@ -17,6 +18,7 @@
+
diff --git a/QRBeeApi/log4net.config b/QRBeeApi/log4net.config
index f12bd9c..f7b0f88 100644
--- a/QRBeeApi/log4net.config
+++ b/QRBeeApi/log4net.config
@@ -6,7 +6,7 @@
-
+
+
+
+
+
+