Skip to content

Commit

Permalink
Update and rename Dockerfile to frontend_production.dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
belajarqywok authored Nov 27, 2022
1 parent f9b80ce commit 936f3df
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Empty file removed Dockerfile
Empty file.
19 changes: 19 additions & 0 deletions frontend_production.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# setting nginx for deploy frontend service
FROM nginx:1.22.1

COPY nginx.conf /etc/nginx/conf.d/default.conf

# setting frontend service deployment
FROM php:7.4-fpm-alpine

WORKDIR /opt/kopiloe_frontend_service

RUN docker-php-ext-install pdo pdo_mysql sockets
RUN curl -sS https://getcomposer.org/installer​ | php -- \
--install-dir=/usr/local/bin --filename=composer

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY . .

EXPOSE 80
RUN composer install

0 comments on commit 936f3df

Please sign in to comment.