vim added to Docker build
This commit is contained in:
		
							parent
							
								
									f604b18f0f
								
							
						
					
					
						commit
						fe7290c628
					
				| @ -52,6 +52,7 @@ RUN apt update && \ | |||||||
| 
 | 
 | ||||||
| ENV PATH="${PATH}:/opt/ruby/bin:/opt/node/bin" | ENV PATH="${PATH}:/opt/ruby/bin:/opt/node/bin" | ||||||
| 
 | 
 | ||||||
|  | # Install package dependency managers | ||||||
| RUN npm install -g yarn && \ | RUN npm install -g yarn && \ | ||||||
| 	gem install bundler && \ | 	gem install bundler && \ | ||||||
| 	apt update && \ | 	apt update && \ | ||||||
| @ -60,6 +61,7 @@ RUN npm install -g yarn && \ | |||||||
| 
 | 
 | ||||||
| COPY Gemfile* package.json yarn.lock /opt/gabsocial/ | COPY Gemfile* package.json yarn.lock /opt/gabsocial/ | ||||||
| 
 | 
 | ||||||
|  | # Install application dependencies | ||||||
| RUN cd /opt/gabsocial && \ | RUN cd /opt/gabsocial && \ | ||||||
| 	bundle install -j$(nproc) --deployment --without development test && \ | 	bundle install -j$(nproc) --deployment --without development test && \ | ||||||
| 	yarn install --pure-lockfile | 	yarn install --pure-lockfile | ||||||
| @ -81,12 +83,12 @@ RUN apt update && \ | |||||||
| 	echo "Etc/UTC" > /etc/localtime && \ | 	echo "Etc/UTC" > /etc/localtime && \ | ||||||
| 	ln -s /opt/jemalloc/lib/* /usr/lib/ && \ | 	ln -s /opt/jemalloc/lib/* /usr/lib/ && \ | ||||||
| 	apt -y dist-upgrade && \ | 	apt -y dist-upgrade && \ | ||||||
| 	apt install -y whois wget && \ | 	apt install -y vim whois wget && \ | ||||||
| 	addgroup --gid $GID gabsocial && \ | 	addgroup --gid $GID gabsocial && \ | ||||||
| 	useradd -m -u $UID -g $GID -d /opt/gabsocial gabsocial && \ | 	useradd -m -u $UID -g $GID -d /opt/gabsocial gabsocial && \ | ||||||
| 	echo "gabsocial:`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 24 | mkpasswd -s -m sha-256`" | chpasswd | 	echo "gabsocial:`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 24 | mkpasswd -s -m sha-256`" | chpasswd | ||||||
| 
 | 
 | ||||||
| # Install masto runtime deps | # Install gabsocial runtime deps | ||||||
| RUN apt -y --no-install-recommends install \ | RUN apt -y --no-install-recommends install \ | ||||||
| 	  libssl1.1 libpq5 imagemagick ffmpeg \ | 	  libssl1.1 libpq5 imagemagick ffmpeg \ | ||||||
| 	  libicu60 libprotobuf10 libidn11 libyaml-0-2 \ | 	  libicu60 libprotobuf10 libidn11 libyaml-0-2 \ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user