-
Notifications
You must be signed in to change notification settings - Fork 0
/
old.Dockerfile
42 lines (34 loc) · 1.37 KB
/
old.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
FROM php:7.3.6-fpm-alpine3.9 as build-stage
#WORKDIR /var/www
WORKDIR /usr/local
COPY /.extras/*.zip /usr/local/
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
RUN apk update
RUN apk add openssl php7-dev php7-pear gcc musl-dev musl unzip nodejs npm libnsl libarchive-tools libaio bash tar unzip g++ && \
apk add composer && \
apk add php7-gd && \
apk add php7-curl ca-certificates && \
apk upgrade && \
unzip basic.zip && \
unzip sdk.zip && \
ln -s /usr/local/instantclient_10_2 /usr/local/instantclient && \
ln -s /usr/local/instantclient/libclntsh.so.* /usr/local/instantclient/libclntsh.so && \
ln -s /usr/local/instantclient/lib* /usr/lib && \
docker-php-ext-configure oci8 --with-oci8=instantclient,/usr/local/instantclient && \
docker-php-ext-install oci8 && \
docker-php-ext-enable oci8 && \
rm -rf /var/lib/apk/lists/*
WORKDIR /var/www
RUN rm -rf /var/www/html
# RUN rm -rf /etc/nginx/conf.d/default.conf
# COPY ./nginx.conf /etc/nginx/conf.d
COPY .docker/app/ /var/www
COPY server.sh /var/www
RUN ln -s public html
#WORKDIR /usr/local/etc/php/conf.d
#RUN ls -a
EXPOSE 9000
ENTRYPOINT ["php-fpm"]