added dockerfile

This commit is contained in:
Rodrigue Chakode 2020-05-17 19:08:05 +02:00
parent 14d5acf5e8
commit 1a7e636ba3
2 changed files with 26 additions and 0 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
.vscode
.git
go.mod
go.sum
*.go
helm
.*ignore

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM alpine:3.9.6
ARG RUNTIME_USER="mxgateway"
ARG RUNTIME_USER_UID=4583
RUN addgroup -g $RUNTIME_USER_UID $RUNTIME_USER && \
adduser --disabled-password --no-create-home --gecos "" \
--home /app --ingroup $RUNTIME_USER --uid $RUNTIME_USER_UID $RUNTIME_USER
COPY entrypoint.sh \
bin/hugo-mx-gateway \
templates \
LICENSE \
/app/
RUN chown -R $RUNTIME_USER:$RUNTIME_USER /app
WORKDIR /app
ENTRYPOINT ["sh", "./entrypoint.sh"]