forked from clayrisser/easyappointments-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (34 loc) · 1.04 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
39
40
41
42
43
############################################################
# Dockerfile to run Easy!Appointments
# Based on Alpine
############################################################
FROM jamrizzi/php-nginx-alpine:php7
MAINTAINER Jam Risser (jamrizzi)
ENV BASE_URL=http://localhost:8888
ENV LANGUAGE=english
ENV DEBUG=false
ENV DB_HOST=db
ENV DB_NAME=easyappointments
ENV DB_USERNAME=root
ENV DB_PASSWORD=hellodocker
ENV GOOGLE_SYNC_FEATURE=false
ENV GOOGLE_PRODUCT_NAME=""
ENV GOOGLE_CLIENT_ID=""
ENV GOOGLE_CLIENT_SECRET=""
ENV GOOGLE_API_KEY=""
ENV TZ="UTC"
EXPOSE 8888
WORKDIR /app/www/
RUN apk add --no-cache \
php7-ctype \
php7-curl \
php7-session \
tzdata
ADD https://github.com/alextselegidis/easyappointments/releases/download/1.4.1/easyappointments-1.4.1.zip /app/www/
RUN unzip -o /app/www/easyappointments-1.4.1.zip && \
rm easyappointments-1.4.1.zip
COPY ./patch.sh /app/.tmp/patch.sh
COPY ./app/ /app/
RUN sh /app/.tmp/patch.sh && \
rm -rf /app/.tmp/
ENTRYPOINT ["/sbin/tini", "--", "python", "/app/run.py"]