Skip to content

Commit

Permalink
[FIX] Fixing build.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisAlejandro committed Jun 24, 2019
1 parent 9447e89 commit b648662
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ These images are similar to the official ones, but with some improved configurat

![](https://cdn.rawgit.com/LuisAlejandro/dockershelf/master/images/table.svg)

### PHP


|Image |Release |Dockerfile |Layers |Size |
|-------|---------|------------|--------|------|
%%PHP_TABLE%%

![](https://cdn.rawgit.com/LuisAlejandro/dockershelf/master/images/table.svg)

## How to download

Pull one of the available images and start hacking!
Expand Down
10 changes: 8 additions & 2 deletions build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,17 @@ if [ "${DOCKER_IMAGE_TYPE}" == "mongo" ]; then
cp "${DOCKER_IMAGE_TYPE_DIR}/articles.js" "${DOCKER_IMAGE_DIR}"
fi

# Copy entrypoint if we are building Postgres or PHP
if [ "${DOCKER_IMAGE_TYPE}" == "postgres" ] || [ "${DOCKER_IMAGE_TYPE}" == "php" ]; then
# Copy entrypoint if we are building Postgres
if [ "${DOCKER_IMAGE_TYPE}" == "postgres" ]; then
cp "${DOCKER_IMAGE_TYPE_DIR}/docker-entrypoint.sh" "${DOCKER_IMAGE_DIR}"
fi

# Copy entrypoint if we are building PHP
if [ "${DOCKER_IMAGE_TYPE}" == "php" ]; then
cp "${DOCKER_IMAGE_TYPE_DIR}/docker-entrypoint.sh" "${DOCKER_IMAGE_DIR}"
cp "${DOCKER_IMAGE_TYPE_DIR}/apache2-foreground" "${DOCKER_IMAGE_DIR}"
fi

# Copy latex sample if we are building Latex
if [ "${DOCKER_IMAGE_TYPE}" == "latex" ]; then
cp "${DOCKER_IMAGE_TYPE_DIR}/sample.tex" "${DOCKER_IMAGE_DIR}"
Expand Down
Empty file modified php/docker-entrypoint.sh
100644 → 100755
Empty file.

0 comments on commit b648662

Please sign in to comment.