Skip to content

Commit

Permalink
feat: Set up automated docker deploy (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavk96 committed May 18, 2019
1 parent 490c3ca commit 9e90143
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Expand Up @@ -10,7 +10,10 @@ COPY package.json yarn.lock ./
RUN yarn install

COPY . .

ARG api_host
ARG google_api_key
ENV API_HOST=$api_host
ENV GOOGLE_API_KEY=$google_api_key
RUN node scripts/l10n.js generate && \
touch .env && \
JOBS=1 yarn build -prod
Expand Down
7 changes: 7 additions & 0 deletions hooks/build
@@ -0,0 +1,7 @@
#!/bin/bash
docker build \
--build-arg api_host=$API_HOST \
--build-arg google_api_key=$GOOGLE_API_KEY \
-t $IMAGE_NAME \
--no-cache .

0 comments on commit 9e90143

Please sign in to comment.