Skip to content
Snippets Groups Projects
Commit 6c1c78f7 authored by Olivier's avatar Olivier
Browse files

Update Dockerfile to get commit number

parent 08e534da
Branches
Tags 1.0.0-beta-0.3.0 1.0.0-beta-0.4.0
No related merge requests found
......@@ -17,7 +17,7 @@ RUN sudo apt-get install -y nodejs
WORKDIR ./DatafariUI
COPY . .
RUN COMMIT_NUMBER=$(git rev-parse --short HEAD) && echo $COMMIT_NUMBER && echo COMMIT_NUMBER=$COMMIT_NUMBER > .env.production
RUN sed -i -e "s/%COMMIT_NUMBER%/$(git rev-parse --short HEAD)/g" .env
RUN npm install
RUN npm run build
RUN tar cfvz datafariui.tar.gz build && mkdir -p /var/binaries/ && mv datafariui.tar.gz /var/binaries/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment