chore(docker): add base_path to build args

This commit is contained in:
Zhigang Fang 2021-05-08 19:48:51 +08:00 committed by GitHub
parent 5ecaf5587b
commit 3d9951661c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
# Build image # Build image
FROM node:12.18-alpine AS build FROM node:12.18-alpine AS build
ARG BASE_PATH
ARG DATABASE_TYPE ARG DATABASE_TYPE
ENV BASE_PATH=$BASE_PATH
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \ ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
DATABASE_TYPE=$DATABASE_TYPE DATABASE_TYPE=$DATABASE_TYPE
WORKDIR /build WORKDIR /build