forked from extremeshok/docker-xmysql-https-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (31 loc) · 853 Bytes
/
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
FROM extremeshok/baseimage-alpine:latest AS BUILD
LABEL mantainer="Adrian Kriel <[email protected]>" vendor="eXtremeSHOK.com"
RUN echo "**** install nginx ****" \
&& apk-install nginx
RUN echo "**** install node with work around due to segfault ****" \
&& apk-install \
paxctl \
nodejs \
nodejs-npm \
&& paxctl -cm $(which node) \
&& apk del paxctl
RUN echo "**** install xmysql ****" \
&& npm install -g xmysql
RUN echo "**** install bash runtime packages ****" \
&& apk-install \
bash \
coreutils \
curl \
mariadb-client \
openssl \
tzdata
# add local files
COPY ./rootfs/ /
RUN echo "**** configure ****" \
&& mkdir -p /tmp/xmysql \
&& mkdir -p /certs \
&& chown -R nginx:nginx /var/www \
&& chmod 777 /xshok_gen_nginx_api_conf.sh
EXPOSE 443/tcp
WORKDIR /tmp
ENTRYPOINT ["/init"]