Skip to content

Commit

Permalink
copiando os arquivos para workdir antes de iniciar apache
Browse files Browse the repository at this point in the history
  • Loading branch information
thyagopacher committed Aug 22, 2024
1 parent 75c9e24 commit a398883
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ temp?

# ignore all markdown files (md) beside all README*.md other than README-secret.md
*.md
*.rst
*.txt
!README*.md
README-secret.md

Expand All @@ -23,4 +25,6 @@ README-secret.md
.git
.gitignore
*/.gitignore
*/*/.gitignore
*/*/.gitignore

./banco/mssql/log/*
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ WORKDIR /var/www/html/
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions gd xdebug ssh2
install-php-extensions

COPY . ./
# Copiar os arquivos para o diretório /var/www/html
COPY ./web/ /var/www/html/
COPY config/php.ini $PHP_INI_DIR/php.ini
COPY config/xdebug.ini $PHP_INI_DIR/xdebug.ini

Expand All @@ -23,7 +24,6 @@ RUN apt-get update \
&& apt-get install -y \
nano \
git \
zip \
wget \
apt-utils \
gnupg \
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
version: "3"
services:
web:
build: .
container_name: apache_web
restart: always
restart: unless-stopped
volumes:
- ./web:/var/www/html
- /home/$USER/.ssh:/home/.ssh
Expand All @@ -23,7 +22,7 @@ services:
- email.local
db:
image: mcr.microsoft.com/mssql/server:2017-latest
restart: always
restart: unless-stopped
environment:
- SA_PASSWORD=usuario@senha
- ACCEPT_EULA=Y
Expand All @@ -33,3 +32,4 @@ services:
- ./banco:/banco
- ./banco/mssql:/var/opt/mssql
- ./banco/sqlserver:/var/opt/sqlserver
- ./logs/:/var/log/apache2
2 changes: 1 addition & 1 deletion web/IndicadoresV2
Submodule IndicadoresV2 updated from 75e38c to 1d8683
2 changes: 1 addition & 1 deletion web/crmmw2
Submodule crmmw2 updated from bfaf0d to 62fca3

0 comments on commit a398883

Please sign in to comment.