Skip to content

Commit

Permalink
feat(laravel): update dockerfile and port destination
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkyfaza20 committed Sep 8, 2024
1 parent 135a24b commit 0eef259
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions api-laravel-crud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN groupadd -g 1000 www
RUN useradd -u 1000 -ms /bin/bash -g www www


FROM php:7.4.33-fpm-alpine3.16 AS production
FROM php:7.4-fpm-alpine3.16 AS production

# Copy existing application directory permissions
WORKDIR /var/www/html/
Expand All @@ -56,8 +56,15 @@ RUN apk --no-cache add \
libxml2-dev \
freetype-dev

RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl
RUN docker-php-ext-install gd
RUN docker-php-ext-install \
curl \
pdo_mysql \
mysqli \
mbstring \
zip \
exif \
pcntl \
gd

COPY --from=build --chown=www:www /var/www/html /var/www/html/

Expand Down
2 changes: 1 addition & 1 deletion argocd/laravel-minikube/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: {{ .Values.service.port }}
protocol: TCP
name: http
selector:
Expand Down

0 comments on commit 0eef259

Please sign in to comment.