-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename Dockerfile to frontend_production.dockerfile
- Loading branch information
1 parent
f9b80ce
commit 936f3df
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |