Fix Docker build for develop and publish a /version file

Fixes https://github.com/vector-im/riot-web/issues/10426
This commit is contained in:
Travis Ralston 2019-12-02 16:58:50 -07:00
parent b4829fd3d4
commit 726bf35b76
4 changed files with 34 additions and 1 deletions

View file

@ -21,6 +21,9 @@ RUN yarn build
# Copy the config now so that we don't create another layer in the app image
RUN cp /src/config.sample.json /src/webapp/config.json
# Ensure we populate the version file
RUN dos2unix /src/scripts/docker-write-version.sh && sh /src/scripts/docker-write-version.sh
# App
FROM nginx:alpine