-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
36 lines (22 loc) · 862 Bytes
/
Dockerfile.dev
File metadata and controls
36 lines (22 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM php:7.4-fpm
ARG user
ARG uid
RUN rm /etc/apt/preferences.d/no-debian-php
RUN apt update && \
apt install -y apt-transport-https git php-mbstring php-gmp php-dom php-gd php-curl zip nano
RUN docker-php-ext-install mysqli pdo_mysql
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Composer <Installed locally for faster deploying purposes>
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Create system user to run Composer and Artisan Commands
# RUN useradd -G www-data,root -u $uid -d /home/$user $user
# RUN mkdir -p /home/$user/.composer && \
# chown -R $user:$user /home/$user
WORKDIR /var/www/ws-dietacerta
COPY ./composer.json .
RUN composer install
# COPY ./composer.lock .
COPY . .
RUN chown www-data:www-data /var/www/ws-dietacerta -R
USER $user
EXPOSE 7000