From b1463519d797ac7b76240ccf3b533ce60cac1bde Mon Sep 17 00:00:00 2001 From: blek Date: Wed, 1 Nov 2023 00:46:54 +1000 Subject: [PATCH] fix prod dockerfile build error --- docker-compose.prod.yml | 4 ++-- filed/Dockerfile.prod | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index a2d464c..4ac8eb2 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -2,8 +2,8 @@ version: '3.7' services: filed: build: - context: filed - dockerfile: Dockerfile.prod + context: . + dockerfile: filed/Dockerfile.prod networks: bfile: volumes: diff --git a/filed/Dockerfile.prod b/filed/Dockerfile.prod index f67f2e6..eee77aa 100644 --- a/filed/Dockerfile.prod +++ b/filed/Dockerfile.prod @@ -2,7 +2,8 @@ FROM rust:alpine as builder WORKDIR /opt/build -COPY . . +COPY filed . +COPY ./.git ./.git RUN apk add --no-cache musl-dev upx nodejs yarn && \ yarn global add uglify-js