Dockerfile: provide a secret to allow build to proceed

Secret is not used in build time. However, config.js
requires one. It won't affect runtime secret in any way
and "flood" used here will be blocked in runtime.
This commit is contained in:
zewelor
2020-08-29 10:57:24 +02:00
committed by Jesse Chan
parent 7561c96a58
commit 9065284312

View File

@@ -26,7 +26,7 @@ COPY server ./server
COPY shared ./shared
COPY scripts ./scripts
COPY config.docker.js ./config.js
RUN npm run build && \
RUN FLOOD_SECRET=flood npm run build && \
npm prune --production
# Now get the clean image without any dependencies and copy compiled app