From cec78ba7692168e315508a718ff4fb211dabd16b Mon Sep 17 00:00:00 2001 From: Nikita Tokarchuk Date: Fri, 17 Dec 2021 14:55:00 +0100 Subject: [PATCH] Adjust docker build for the new package structure --- .dockerignore | 3 ++- Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 4b910a2..5de0ae6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,7 @@ * +!cmd !nginx -!frontend +!pkg !web !go.mod !go.sum diff --git a/Dockerfile b/Dockerfile index 098f2a1..bb09166 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,8 @@ RUN --mount=type=cache,id=gopath,target=${GOPATH} \ ARG APP_VERSION=containerized -COPY frontend frontend +COPY cmd cmd +COPY pkg pkg RUN --mount=type=cache,id=gopath,target=${GOPATH} \ go build \