mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 06:05:43 +00:00 
			
		
		
		
	 52f189563b
			
		
	
	52f189563b
	
	
	
		
			
			* refactor: split app context and user context * tests: fix api tests * chore: rename dockerfiles * fix: use correct forwardauth address
		
			
				
	
	
		
			22 lines
		
	
	
		
			381 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			381 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM golang:1.23-alpine3.21
 | |
| 
 | |
| WORKDIR /tinyauth
 | |
| 
 | |
| COPY go.mod ./
 | |
| COPY go.sum ./
 | |
| 
 | |
| RUN go mod download
 | |
| 
 | |
| COPY ./cmd ./cmd
 | |
| COPY ./internal ./internal
 | |
| COPY ./main.go ./
 | |
| COPY ./air.toml ./
 | |
| 
 | |
| RUN mkdir -p ./internal/assets/dist && \
 | |
|     echo "app running" > ./internal/assets/dist/index.html
 | |
| 
 | |
| RUN go install github.com/air-verse/air@v1.61.7
 | |
| 
 | |
| EXPOSE 3000
 | |
| 
 | |
| ENTRYPOINT ["air", "-c", "air.toml"] |