-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 1.08 KB
/
Dockerfile
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
37
38
ARG VERSAO_PHP=likesistemas/php:latest
FROM ${VERSAO_PHP}
RUN apt-get update && apt-get install -y tree && rm -rf /var/lib/apt/lists/*
ENV VERSAO=1.1.0
COPY sh/ /usr/local/bin/
RUN chmod +x /usr/local/bin/configure-db \
&& chmod +x /usr/local/bin/configure-db-ini \
&& chmod +x /usr/local/bin/configure-db-tstore \
&& chmod +x /usr/local/bin/configure-app \
&& chmod +x /usr/local/bin/configure-volumes \
&& chmod +x /usr/local/bin/set-own \
&& chmod +x /usr/local/bin/set-rown \
&& chmod +x /usr/local/bin/new-folder \
&& chmod +x /usr/local/bin/entrypoint-app \
&& chmod +x /usr/local/bin/clear-www \
&& chmod +x /usr/local/bin/run-app \
&& chmod +x /usr/local/bin/add-new-config
COPY events/ /var/events/
RUN rm index.php
ENV AMBIENTE="producao"
ENV ARQUIVO_CONFIG="config.ini"
ENV MEMCACHE_PORT=11211
ENV APP_NAME="core"
RUN set-own ${WWW}
RUN set-own ${PUBLIC_HTML}
ENV FILES_FOLDER="files"
ENV TEMP_FOLDER="temp"
ENV LOGS_FOLDER="logs"
ENV VOLUMES="${FILES_FOLDER} ${TEMP_FOLDER} ${LOGS_FOLDER} ${TEMP_FOLDER}/css/ ${TEMP_FOLDER}/js/ ${TEMP_FOLDER}/manifest/ ${TEMP_FOLDER}/object/"