3 time the charm
This commit is contained in:
		
							
								
								
									
										22
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -2,18 +2,22 @@ FROM ubuntu:latest | ||||
|  | ||||
| VOLUME ["/code"] | ||||
|  | ||||
| ENV DEBIAN_FRONTEND=noninteractive | ||||
| RUN dpkg --add-architecture i386 | ||||
| RUN apt-get update | ||||
| RUN apt-get install nasm curl make:i386 binutils:i386 xorriso grub-pc-bin dos2unix -y | ||||
| RUN apt-get clean | ||||
| RUN curl https://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.i386-linux.tar/download --output fpc.tar -L && \ | ||||
| 	tar -xf fpc.tar | ||||
| RUN apt-get update && apt-get install -y \ | ||||
| 	curl dos2unix wget git make nasm binutils:i386 xorriso grub-pc-bin && \ | ||||
| 	apt-get clean my room | ||||
|  | ||||
| WORKDIR ./fpc-2.6.4.i386-linux | ||||
| RUN ./install.sh | ||||
| SHELL ["/bin/bash", "-c"] | ||||
| ARG FPC_VERSION=2.6.4 | ||||
| RUN curl -sL https://sourceforge.net/projects/freepascal/files/Linux/$FPC_VERSION/fpc-$FPC_VERSION.i386-linux.tar/download | tar -xf - && \ | ||||
| 	pushd fpc-$FPC_VERSION.i386-linux && ./install.sh && popd && \ | ||||
| 	rm -rf fpc-$FPC_VERSION.i386-linux | ||||
|  | ||||
| COPY compile.sh /compile.sh | ||||
| RUN mkdir /code | ||||
| ADD https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver /usr/bin/semver | ||||
| RUN mkdir /code && chmod +x /usr/bin/semver | ||||
| WORKDIR /code | ||||
| RUN find . -type f -print0 | xargs -0 dos2unix | ||||
| ENTRYPOINT ["/bin/bash", "/compile.sh"] | ||||
| ENTRYPOINT ["/bin/bash", "-c"] | ||||
| CMD ["/compile.sh"] | ||||
		Reference in New Issue
	
	Block a user
	 Jinux
					Jinux