Giter VIP home page Giter VIP logo

docker-php-base's Introduction

docker-php-base

Base container image for modern PHP applications built on top of Alpine Linux. Targeted for containerizing Laravel.

Usage

  • Create a Dockerfile in root of your PHP project.
FROM improwised/php-base:latest

# Copy Composer
COPY ./composer.* /var/www/

# Install dependencies
RUN composer install --no-scripts --no-autoloader

# Copy app
COPY . /var/www

# Generate autoload and fix permissions
RUN set -ex \
  && composer dump-autoload --optimize \
  && chown -R nginx:nginx /var/www
  • Build your application Docker image for Production
docker build -t my-laravel-app .
docker run -it --rm --name my-running-app my-laravel-app

docker-php-base's People

Contributors

adiechahk avatar deltasquare4 avatar mansidesai631 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dateperfect

docker-php-base's Issues

Question about CI

We have recently added a branch for php8.1. (Not yet pushed to dockerhub)

We have successfully tested it with Laravel 10. All things are working fine.

do we need to update this file as well? I am not sure if we should make it automatic build&push.

Fix : CI to accommodate the changes in branch name

User story

Fix : CI to accommodate the changes in branch name

Acceptance criteria

  • we do not need to manually add the branch tag

Sprint Ready Checklist

    • Acceptance criteria defined
    • Team understands acceptance criteria
    • Team has defined solution / steps to satisfy acceptance criteria
    • Acceptance criteria is verifiable / testable

Construct a CI pipeline for docker-php-base repo.

#User Story -
As a programmer when I make changes and merge a PR on this repo I want a new docker image pushed onto the docker hub.

Acceptance criteria

  • If the CI pipeline fails we DevOps team should get notified.
  • After some predetermined time programmer can see the newly created image on the docker hub repo.
  • Prepare documentation on how they constructed this pipeline.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.