mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
update docker file to properly transmit cli parameters to vue
This commit is contained in:
parent
f3e7917d41
commit
9cf1221040
@ -8,14 +8,18 @@ FROM node:12.19.0-alpine3.10 as base
|
||||
ENV DOCKER_WORKDIR="/app"
|
||||
## We Cannot do `$(date -u +'%Y-%m-%dT%H:%M:%SZ')` here so we use unix timestamp=0
|
||||
ENV BUILD_DATE="1970-01-01T00:00:00.00Z"
|
||||
ENV VUE_APP_BUILD_DATE="${BUILD_DATE}"
|
||||
## We cannot do $(npm run version).${BUILD_NUMBER} here so we default to 0.0.0.0
|
||||
ENV BUILD_VERSION="0.0.0.0"
|
||||
ENV VUE_APP_BUILD_VERSION="${BUILD_VERSION}"
|
||||
## We cannot do `$(git rev-parse --short HEAD)` here so we default to 0000000
|
||||
ENV BUILD_COMMIT="0000000"
|
||||
ENV VUE_APP_BUILD_COMMIT="${BUILD_COMMIT}"
|
||||
## SET NODE_ENV
|
||||
ENV NODE_ENV="production"
|
||||
## App relevant Envs
|
||||
ENV PORT="3000"
|
||||
# TODO ENV VUE_APP_PORT="${PORT}"
|
||||
|
||||
# Labels
|
||||
LABEL org.label-schema.build-date="${BUILD_DATE}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user