This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -eux | |
# Copies whole src dir into dest | |
rsync -avz src dest/ | |
# Copies content of src dir into dest | |
rsync -avz src/ dest/ | |
# Copies all files/directories except those specified exactly or with wildcard | |
rsync -avz --exclude='.gitignore' --exclude='*csv' --exclude='d2' src/ dest/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build image | |
FROM node:12.18-alpine AS build | |
ARG BASE_PATH | |
ARG DATABASE_TYPE | |
ENV BASE_PATH=$BASE_PATH | |
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \ | |
DATABASE_TYPE=$DATABASE_TYPE | |
WORKDIR /build |