Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize #33

Open
d0lb33 opened this issue Aug 9, 2022 · 1 comment
Open

Dockerize #33

d0lb33 opened this issue Aug 9, 2022 · 1 comment

Comments

@d0lb33
Copy link

d0lb33 commented Aug 9, 2022

Would love to have this on docker hub. I wrote a little docker file that can probably be optimized, but works fine for me right now if you'd like to expand on it/add it to the project:

FROM php:7.4.9-cli-alpine3.12

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/

RUN apk update
RUN apk add bash
RUN apk add curl

# Install PHP extensions
RUN install-php-extensions ldap


# INSTALL COMPOSER
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer 

WORKDIR /app
COPY . .

RUN composer install

CMD ["php", "bin/console", "ldap:sync"]
@Adambean
Copy link
Owner

I've literally never used Docker, but feel free to send a PR up so you can retain credit. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants