added dockerfile
This commit is contained in:
parent
14d5acf5e8
commit
1a7e636ba3
|
@ -0,0 +1,7 @@
|
|||
.vscode
|
||||
.git
|
||||
go.mod
|
||||
go.sum
|
||||
*.go
|
||||
helm
|
||||
.*ignore
|
|
@ -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"]
|
Loading…
Reference in New Issue