This commit is contained in:
Eugene Pankov
2021-07-25 20:45:15 +02:00
parent badc8302ce
commit 83c5e11a61
37 changed files with 37 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
# syntax=docker/dockerfile:1
FROM node:12-alpine AS build
ARG BACKEND_URL
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn

View File

@@ -4,9 +4,11 @@ steps:
args:
- build
- '-t'
- '${_DOCKER_PUBLISH_URL}'
- '${_DOCKER_TAG}'
- '--cache-from'
- '${_DOCKER_PUBLISH_URL}'
- '${_DOCKER_TAG}'
- '--build-arg'
- 'BACKEND_URL=${_BACKEND_URL}'
- '.'
images: ['${_DOCKER_TAG}']