pass REMARK_URL as arg to frontend part during build time

This commit is contained in:
igoradamenko
2018-04-08 15:19:13 +03:00
parent 6566bc7412
commit d9d1082f9e
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -17,6 +17,9 @@ RUN go build -o remark -ldflags "-X main.revision=$(git rev-parse --abbrev-ref H
FROM node:9.4-alpine as build-frontend
ARG REMARK_URL
ENV REMARK_URL $REMARK_URL
ADD web /srv/web
RUN \
cd /srv/web && \
+4 -1
View File
@@ -2,7 +2,10 @@ version: '2'
services:
remark:
build: .
build:
context: .
args:
- REMARK_URL=${REMARK_URL}
image: umputun/remark:master
container_name: "remark"
hostname: "remark"