weitere Module + Base Image Ubuntu
This commit is contained in:
		
							
								
								
									
										25
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -1,8 +1,23 @@ | ||||
| FROM php:7.4-cli | ||||
| FROM ubuntu:20.04 | ||||
|  | ||||
| RUN apt update \ | ||||
| 	&& apt install -y locales \ | ||||
| 	&& rm -rf /var/lib/apt/lists/* | ||||
| # setup apt | ||||
| RUN apt update | ||||
|  | ||||
| RUN sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \ | ||||
| # base php & composer | ||||
| RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends php-cli composer | ||||
|  | ||||
| # curl, gd, xml | ||||
| RUN apt install -y --no-install-recommends php-gd php-xml php-curl | ||||
|  | ||||
| # change locale | ||||
| RUN apt install -y locales \ | ||||
| 	&& sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \ | ||||
| 	&& locale-gen | ||||
|  | ||||
| # cleanup | ||||
| RUN rm -rf /var/lib/apt/lists/* | ||||
|  | ||||
| # runtime | ||||
| COPY docker-php-entrypoint /usr/local/bin/ | ||||
| ENTRYPOINT ["/usr/local/bin/docker-php-entrypoint"] | ||||
| CMD ["php", "-a"] | ||||
|   | ||||
							
								
								
									
										2
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								build.sh
									
									
									
									
									
								
							| @@ -1,3 +1,3 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| docker build --pull --tag tuxmainy/php-cli:7.4-de . | ||||
| docker -H unix:///var/run/docker-test.sock build --pull --tag tuxmainy/php-cli:7.4-de . | ||||
|   | ||||
							
								
								
									
										9
									
								
								docker-php-entrypoint
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								docker-php-entrypoint
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #!/bin/sh | ||||
| set -e | ||||
|  | ||||
| # first arg is `-f` or `--some-option` | ||||
| if [ "${1#-}" != "$1" ]; then | ||||
| 	set -- php "$@" | ||||
| fi | ||||
|  | ||||
| exec "$@" | ||||
		Reference in New Issue
	
	Block a user