danylokhodus commited on
Commit
c8301b4
·
1 Parent(s): fbe6cd9

fix: set ASPNETCORE_ENVIRONMENT=Production in Dockerfile, create /data/data dir

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -18,8 +18,12 @@ RUN dotnet publish "FlowAPI.csproj" -c Release -o /app/publish /p:UseAppHost=fal
18
  FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
19
  WORKDIR /app
20
  ENV ASPNETCORE_URLS=http://+:7860
 
21
  EXPOSE 7860
22
 
 
 
 
23
  # Install Node.js 20
24
  RUN apt-get update && apt-get install -y curl && \
25
  curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
 
18
  FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
19
  WORKDIR /app
20
  ENV ASPNETCORE_URLS=http://+:7860
21
+ ENV ASPNETCORE_ENVIRONMENT=Production
22
  EXPOSE 7860
23
 
24
+ # Create persistent data directory for SQLite
25
+ RUN mkdir -p /data/data
26
+
27
  # Install Node.js 20
28
  RUN apt-get update && apt-get install -y curl && \
29
  curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \