Skip to content

Commit

Permalink
Build the container properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ircmaxell committed Apr 16, 2019
1 parent 1a74999 commit 7fa33b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions Docker/ubuntu-16.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
FROM ircmaxell/php-compiler:16.04-dev

WORKDIR ../
COPY ./ /compiler

RUN curl -L https://github.com/ircmaxell/php-compiler/archive/master.zip -o master.zip && \
unzip master.zip && \
mv php-compiler-master/* compiler/

WORKDIR compiler
WORKDIR /compiler

RUN php /composer.phar install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader

# Needed to initialize PRE
RUN php vendor/autoload.php

ENTRYPOINT ["php", "/compiler/bin/jit.php"]

CMD ["-r", "'echo \"Hello World\n\";'"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ shell:
.PHONY: docker-build
docker-build:
docker build -t ircmaxell/php-compiler:16.04-dev Docker/dev/ubuntu-16.04
docker build --no-cache -t ircmaxell/php-compiler:16.04 Docker/ubuntu-16.04
docker build --no-cache -t ircmaxell/php-compiler:16.04 -f Docker/ubuntu-16.04/Dockerfile .

.PHONY: benchmark
benchmark: rebuild-changed
Expand Down

0 comments on commit 7fa33b2

Please sign in to comment.