-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_alpine
45 lines (39 loc) · 1.27 KB
/
Dockerfile_alpine
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
44
FROM digrouz/alpine-s6:latest
LABEL maintainer "DI GREGORIO Nicolas <[email protected]>"
ARG MINIFLUX_VERSION='2.0.41'
ARG MINIFLUX_ARCH='amd64'
### Environment variables
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
MINIFLUX_VERSION="${MINIFLUX_VERSION}" \
MINIFLUX_ARCH="${MINIFLUX_ARCH}" \
LISTEN_ADDR="0.0.0.0:8080"
### Copy config files
COPY root/ /
### Install Application
RUN set -x && \
apk upgrade --no-cache && \
apk add --no-cache --virtual=build-deps \
ca-certificates \
curl \
&& \
apk add --no-cache --virtual=run-deps \
gcompat \
tzdata \
&& \
mkdir -p /opt/miniflux/bin && \
curl -SsL "https://github.com/miniflux/v2/releases/download/${MINIFLUX_VERSION}/miniflux-linux-${MINIFLUX_ARCH}" -o /opt/miniflux/bin/miniflux && \
echo "export LISTEN_ADDR='${LISTEN_ADDR}'" >> /etc/profile.d/docker-extraenv.sh && \
chmod 0755 /opt/miniflux && \
find /opt/miniflux -type d -exec chmod 0755 {} \; && \
find /opt/miniflux -type f -exec chmod 0644 {} \; && \
chmod 755 /opt/miniflux/bin/miniflux && \
apk del --no-cache --purge \
build-deps \
&& \
rm -rf /tmp/* \
/var/cache/apk/* \
/var/tmp/*
### Expose ports
Expose 8080