Expose SERVICE_NAME as env so CMD expands properly (#4)

This commit is contained in:
Andrew Mayorov 2022-02-10 17:16:29 +03:00 committed by GitHub
parent 14369d48f4
commit 4862a0832c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,9 @@ ARG SERVICE_NAME
ENV CHARSET=UTF-8
ENV LANG=C.UTF-8
# Expose SERVICE_NAME as env so CMD expands properly on start
ENV SERVICE_NAME=${SERVICE_NAME}
# Set runtime
WORKDIR /opt/${SERVICE_NAME}