removed trash from dockerfile

This commit is contained in:
Tiago Sousa 2023-12-05 19:44:25 +00:00
parent cf6b296221
commit f8a0b6d6ba

View file

@ -1,9 +1,6 @@
# Dockerfile for the laravel.io application
FROM ubuntu:22.04
ARG SEED_DATA="false"
RUN apt update
# install system dependencies
RUN apt install software-properties-common git -y
@ -34,14 +31,9 @@ RUN composer install
RUN php artisan key:generate
# seed data if build arg is provided
RUN if [ "$SEED_DATA" = true ]; then php artisan migrate --seed; fi
RUN npm install
RUN npm run build
#Open on port 8000 to all addresses
# COPY entrypoint.sh .
# RUN chmod +x entrypoint.sh
ENTRYPOINT php artisan migrate --seed; php artisan serve --port=8000 --host=0.0.0.0
ENTRYPOINT php artisan migrate; php artisan serve --port=8000 --host=0.0.0.0
EXPOSE 8000