Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
✨ feat(tengine): update base image & format dockerfile
Browse files Browse the repository at this point in the history
update base image & format dockerfile

Signed-off-by: mritd <mritd1234@gmail.com>
  • Loading branch information
mritd committed Dec 5, 2017
1 parent d57ce2f commit 61a0dea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion alpine-sunjdk8-maven3/Dockerfile
@@ -1,4 +1,4 @@
FROM mritd/alpine-glibc:3.6
FROM mritd/alpine-glibc:2.26-r0

LABEL maintainer="mritd <mritd1234@gmail.com>"

Expand Down
15 changes: 6 additions & 9 deletions alpine-tengine/Dockerfile
@@ -1,20 +1,18 @@
FROM alpine:3.6
FROM alpine:3.7

LABEL maintainer="mritd <mritd1234@gmail.com>"

#set TimeZone
ARG TZ="Asia/Shanghai"

ENV TZ ${TZ}
# set Config
#Tengine Version 2.2.1
ENV Version 2.2.1

RUN \
addgroup -S tengine \
&& adduser -D -S -h /var/lib/tengine -s /sbin/nologin -G tengine tengine \
&& addgroup -S www-data \
&& adduser tengine www-data \
# install make Dependence
# install make Dependence
&& apk add --update \
gcc \
libc-dev \
Expand All @@ -29,9 +27,8 @@ RUN \
wget \
tar \
gzip \
# compile & install
# compile & install
&& mkdir /install \
# download
&& (cd /install \
&& wget http://tengine.taobao.org/download/tengine-$Version.tar.gz \
&& tar -zxC . -f /install/tengine-$Version.tar.gz ) \
Expand Down Expand Up @@ -84,10 +81,10 @@ RUN \
&& chmod 750 /var/log/tengine \
&& install -d /var/lib/tengine /var/www/tengine \
&& chown tengine:www-data /var/www/tengine) \
# forward request and error logs to docker log collector
# forward request and error logs to docker log collector
&& ln -sf /dev/stdout /var/log/tengine/access.log \
&& ln -sf /dev/stderr /var/log/tengine/error.log \
# Remove unneeded packages/files
# Remove unneeded packages/files
&& apk del gcc linux-headers make wget tar gzip \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
Expand Down

0 comments on commit 61a0dea

Please sign in to comment.