Dockerfile almost finished. Composer command needs to be fixed
This commit is contained in:
parent
444a0e0041
commit
59fc9c9636
1 changed files with 30 additions and 1 deletions
|
@ -1,2 +1,31 @@
|
|||
# Dockerfile for the laravel.io application
|
||||
# TO DO
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
RUN apt update
|
||||
# install system dependencies
|
||||
RUN apt install software-properties-common git -y
|
||||
|
||||
RUN git clone https://github.com/laravelio/laravel.io.git /app/laravel
|
||||
|
||||
WORKDIR /app/laravel
|
||||
|
||||
# add php apt repo
|
||||
RUN add-apt-repository ppa:ondrej/php
|
||||
|
||||
RUN apt update
|
||||
|
||||
# install app dependencies
|
||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Europe/Lisbon apt install tzdata php8.2 php8.2-simplexml php8.2-curl php8.2-dom composer npm -y
|
||||
|
||||
ENV DB_CONNECTION=mysql
|
||||
ENV DB_HOST=laraveldb
|
||||
ENV DB_DATABASE=laravel
|
||||
ENV DB_USERNAME=root
|
||||
ENV DB_PASSWORD=password
|
||||
|
||||
RUN composer install
|
||||
|
||||
RUN composer setup
|
||||
|
||||
EXPOSE 8000
|
||||
|
|
Loading…
Reference in a new issue