This commit is contained in:
Patric 2024-06-15 14:21:22 +02:00
parent 6ebcb70a8f
commit 66cb1a0c67
2 changed files with 20 additions and 3 deletions

View File

@ -3,9 +3,14 @@ ARG DEBIAN_FRONTEND=noninteractive
USER root
WORKDIR /app
COPY . /app
RUN apt update
RUN apt upgrade -y
RUN apt install php php-mbstring php-xml php-pdo php-mysql php-xdebug -y
RUN apt install curl -y
RUN cd /tmp
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
CMD php artisan serve --host=0.0.0.0 --port=8181
EXPOSE 8181

18
Jenkinsfile vendored
View File

@ -1,9 +1,21 @@
pipeline {
agent any
agent {
dockerContainer {
image 'ubuntu:22.04'
}
}
stages {
stage('Hello') {
stage('Clone') {
steps {
echo 'Hello World'
git branch: 'main',
//credentialsId: '9174b603-02b6-46bd-970d-64569bab977a',
url: 'https://github.com/buddy-works/laravel-first-steps.git'
}
}
stage('Build') {
steps {
sh 'docker build . -t dockerfile'
}
}
}