Not caching apk fetches and now providing a sample .env file for at /opt/freechat/.env
This commit is contained in:
		
							parent
							
								
									1b3d7da744
								
							
						
					
					
						commit
						fa62d3adfe
					
				@ -1,16 +1,23 @@
 | 
			
		||||
# This File basically sets up a fresh alpine install with all the things 
 | 
			
		||||
# required for setting up a new freechat instance
 | 
			
		||||
 | 
			
		||||
FROM alpine:latest
 | 
			
		||||
# NOTE: this is the production docker so its purposefully tiny to let others
 | 
			
		||||
# build what they want on it
 | 
			
		||||
# It's really small and missing basically every feature you _want_
 | 
			
		||||
 | 
			
		||||
FROM nginx:alpine
 | 
			
		||||
 | 
			
		||||
# First we simply install all the things we may need to build/
 | 
			
		||||
RUN apk add mysql
 | 
			
		||||
RUN apk add nginx
 | 
			
		||||
RUN apk add openssl-dev
 | 
			
		||||
RUN apk add cargo
 | 
			
		||||
RUN apk add git
 | 
			
		||||
RUN apk add --no-cache mysql
 | 
			
		||||
RUN apk add --no-cache nginx
 | 
			
		||||
RUN apk add --no-cache openssl-dev
 | 
			
		||||
RUN apk add --no-cache cargo
 | 
			
		||||
RUN apk add --no-cache git
 | 
			
		||||
 | 
			
		||||
# Now we being the freechat installation process
 | 
			
		||||
RUN git clone https://gitlab.com/shockrah/freechat.git/ /opt/freechat/
 | 
			
		||||
RUN cd /opt/freechat/ && sh docker-auto-build.sh --no-cargo-cache
 | 
			
		||||
 | 
			
		||||
# Sample env file to copy into the base image
 | 
			
		||||
# All keys present but not set to anything(null)
 | 
			
		||||
COPY sample.env /opt/freechat/.env
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										11
									
								
								docker/sample.env
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								docker/sample.env
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
# Mysql key data
 | 
			
		||||
DATABASE_NAME=
 | 
			
		||||
DATABASE_PASS=
 | 
			
		||||
DATABASE_USER=
 | 
			
		||||
DATABASE_HOST=
 | 
			
		||||
 | 
			
		||||
# Server meta things
 | 
			
		||||
SERVER_NAME="Freechat Dev Server"
 | 
			
		||||
SERVER_DESCRIPTION="Server for sick development things"
 | 
			
		||||
SERVER_URL=localhost
 | 
			
		||||
SERVER_PORT=8888
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user