finetuning, tweaking

This commit is contained in:
Marco Ochse
2018-05-16 14:57:52 +00:00
parent 842bec2cb3
commit 5447978191
8 changed files with 31 additions and 41 deletions

View File

@ -1,24 +1,22 @@
FROM alpine
# Setup env and apt
RUN apk -U upgrade && \
apk add bash \
curl \
git \
nodejs \
nodejs-npm \
procps && \
RUN apk -U --no-cache add \
curl \
git \
nodejs \
nodejs-npm && \
# Get and install packages
mkdir -p /usr/src/app/ && \
cd /usr/src/app/ && \
git clone https://github.com/mobz/elasticsearch-head . && \
git clone --depth=1 https://github.com/mobz/elasticsearch-head . && \
npm install http-server && \
sed -i 's/\"http\:\/\/localhost\:9200\"/\"https\:\/\/\<FQDN\>\:64297\/es\/\"/' /usr/src/app/_site/app.js && \
# Setup user, groups and configs
addgroup -g 2000 head && \
adduser -S -H -s /bin/bash -u 2000 -D -g 2000 head && \
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 head && \
chown -R head:head /usr/src/app/ && \
# Clean up