Skip to content

dustinscarberry/docker-base-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Base Docker Image

Current variants

8.x

Base box with nginx / php-fpm and migration scripts. Comes with basic PHP extensions.

8.x-extra

Base box with nginx / php-fpm and migration scripts. Comes with basic PHP extensions as well as sqlsrv, pdo_sqlsrv, oci8 and ldap.

Usage

FROM dustinscarberry/symfony:8.2

# set workdir
WORKDIR /var/www/html

# copy app files to /var/www
COPY --chown=www-data:www-data . /var/www/html

# build app dependencies
RUN apk add --no-cache make gcc g++ python3 npm && \
  composer i --no-scripts --no-dev && \
  npm ci && \
  npm run prod && \
  apk del make gcc g++ python3 npm && \
  rm -rf node_modules

# fix web permissions
RUN chown -R www-data:www-data *

EXPOSE 80

Building / updating base boxes

./build.sh

About

Symfony base Docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published