summaryrefslogtreecommitdiffstats
path: root/sidecar/fproxy/src/main/docker/Dockerfile
blob: 4537e2447fa7f019d2f874509d4213cffe5187e0 (plain)
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
FROM openjdk:8-alpine

ARG MICRO_HOME=/opt/app/fproxy
ARG BIN_HOME=$MICRO_HOME/bin
ARG JAR_FILE=fproxy-exec.jar

RUN apk update && \
    apk add ca-certificates

## Setup JAVA_HOME, this is useful for docker commandline
ENV JAVA_HOME usr/lib/jvm/java-1.8-openjdk
RUN export JAVA_HOME

# Build up the deployment folder structure
RUN mkdir -p $MICRO_HOME
WORKDIR $MICRO_HOME
COPY maven/fproxy/ .
RUN chmod 755 $BIN_HOME/* && \
    mkdir /logs && \
    ln -s /logs $MICRO_HOME/logs
# Create the appuser
RUN addgroup --system appgroup && \
    adduser --system --uid 1001 --ingroup appgroup appuser && \
    chown -R appuser:appgroup $MICRO_HOME && \
    chmod 777 /logs
USER appuser

CMD ["/opt/app/fproxy/bin/start.sh"]