removed trash from dockerfile
This commit is contained in:
parent
cf6b296221
commit
f8a0b6d6ba
1 changed files with 1 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue