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

Dockerfile updated #181

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

unstablemaple
Copy link

This Dockerfile works and builds, I had to build my own image as I have an ARM processor. Aside from that, the image itself has its own NGINX, which doesn't work for my setup, and assumingly most of the docker setups of other people who host multiple frontends that are available for the public. I think you should add a section for setting up NGINX with PHP. New instance at: cringe.seitan-ayoub.lol

RUN composer install --no-interaction --optimize-autoloader --no-dev --no-cache

EXPOSE 8080
EXPOSE 9000
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 9000? it seems an unwanted changes

&& chmod -R 777 /var/www/html/ \
&& apk cache clean \
&& rm -rf /var/lib/apk/lists/* \
&& rm -rf /usr/bin/composer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use a multi-stage docker file https://docs.docker.com/build/building/multi-stage/

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

Successfully merging this pull request may close these issues.

None yet

2 participants