Dockerfile
raw| 1 | FROM alpine:3.11.6 |
| 2 | |
| 3 | ARG RUNTIME_USER="mxgateway" |
| 4 | ARG RUNTIME_USER_UID=4583 |
| 5 | |
| 6 | RUN addgroup -g $RUNTIME_USER_UID $RUNTIME_USER && \ |
| 7 | adduser --disabled-password --no-create-home --gecos "" \ |
| 8 | --home /app --ingroup $RUNTIME_USER --uid $RUNTIME_USER_UID $RUNTIME_USER |
| 9 | |
| 10 | COPY entrypoint.sh bin/hugo-mx-gateway LICENSE /app/ |
| 11 | COPY templates /app/templates |
| 12 | |
| 13 | RUN chown -R $RUNTIME_USER:$RUNTIME_USER /app |
| 14 | |
| 15 | WORKDIR /app |
| 16 | ENTRYPOINT ["sh", "./entrypoint.sh"] |