mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-31 10:15:33 +00:00 
			
		
		
		
	Started adding dockerfile
This commit is contained in:
		
							
								
								
									
										24
									
								
								HaWeb/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								HaWeb/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| FROM alpine:latest | ||||
| WORKDIR /app | ||||
|  | ||||
| RUN apk add --no-cache \ | ||||
|     unzip \ | ||||
|     ca-certificates \ | ||||
|     build-base | ||||
|  | ||||
| # download and unzip PocketBase | ||||
| ADD https://go.dev/dl/go1.22.3.linux-amd64.tar.gz /tmp/go.tar.gz  | ||||
| RUN tar -C /usr/local -xzf /tmp/go.tar.gz | ||||
| RUN export PATH=$PATH:/usr/local/go/bin | ||||
|  | ||||
| # uncomment to copy the local pb_migrations dir into the image | ||||
| COPY . .  | ||||
| RUN /usr/local/go/bin/go build -tags "sqlite_fts5 sqlite_json sqlite_foreign_keys sqlite_vtable sqlite_math_functions" | ||||
| RUN ./myapp migrate --dev | ||||
| RUN ./myapp migrateimages --dev | ||||
| RUN ./myapp migratestatics --dev | ||||
|  | ||||
| EXPOSE 8080 | ||||
|  | ||||
| # start PocketBase | ||||
| CMD ["./myapp", "serve", "--http=0.0.0.0:8080"] | ||||
| @@ -1,29 +1,28 @@ | ||||
| { | ||||
|     "Logging": { | ||||
|       "LogLevel": { | ||||
|         "Default": "Information", | ||||
|         "Microsoft.AspNetCore": "Warning" | ||||
|       } | ||||
|     }, | ||||
|     "FeatureManagement": { | ||||
|       "AdminService":  true, | ||||
|       "LocalPublishService": true, | ||||
|       "SyntaxCheck": true, | ||||
|       "Notifications": true | ||||
|     }, | ||||
|     "AllowedWebSocketConnections": "*", | ||||
|     "AllowedHosts": "*", | ||||
|     "HamannFileStoreLinux": "/var/www/vhosts/development.hamann-ausgabe.de/httpdocs/Hamann/", | ||||
|     "BareRepositoryPathLinux": "/var/www/vhosts/development.hamann-ausgabe.de/httpdocs/Bare/", | ||||
|     "BareRepositoryPathWindows": "C:/Users/simon/source/hamann-xml/.git/", | ||||
|     "WorkingTreePathLinux": "/var/www/vhosts/development.hamann-ausgabe.de/httpdocs/Repo/", | ||||
|     "RepositoryBranch": "main", | ||||
|     "RepositoryURL": "https://github.com/Theodor-Springmann-Stiftung/hamann-xml", | ||||
|     "StoredPDFPathWindows": "", | ||||
|     "StoredPDFPathLinux": "", | ||||
|     "FileSizeLimit": 52428800, | ||||
|     "AvailableStartYear": 1700, | ||||
|     "AvailableEndYear": 1800, | ||||
|     "LettersOnPage": 80 | ||||
|   } | ||||
|    | ||||
|   "Logging": { | ||||
|     "LogLevel": { | ||||
|       "Default": "Information", | ||||
|       "Microsoft.AspNetCore": "Warning" | ||||
|     } | ||||
|   }, | ||||
|   "FeatureManagement": { | ||||
|     "AdminService": true, | ||||
|     "LocalPublishService": true, | ||||
|     "SyntaxCheck": true, | ||||
|     "Notifications": true | ||||
|   }, | ||||
|   "AllowedWebSocketConnections": "*", | ||||
|   "AllowedHosts": "*", | ||||
|   "HamannFileStoreLinux": "./Hamann", | ||||
|   "BareRepositoryPathLinux": "hamann-xml/.git/", | ||||
|   "BareRepositoryPathWindows": "C:/Users/simon/source/hamann-xml/.git/", | ||||
|   "WorkingTreePathLinux": "hamann-xml/", | ||||
|   "RepositoryBranch": "main", | ||||
|   "RepositoryURL": "https://github.com/Theodor-Springmann-Stiftung/hamann-xml", | ||||
|   "StoredPDFPathWindows": "", | ||||
|   "StoredPDFPathLinux": "", | ||||
|   "FileSizeLimit": 52428800, | ||||
|   "AvailableStartYear": 1700, | ||||
|   "AvailableEndYear": 1800, | ||||
|   "LettersOnPage": 80 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens