Adjust docker build for the new package structure

main
Nikita Tokarchuk 2 years ago
parent 39ef200967
commit cec78ba769
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 3
      .dockerignore
  2. 3
      Dockerfile

@ -1,6 +1,7 @@
*
!cmd
!nginx
!frontend
!pkg
!web
!go.mod
!go.sum

@ -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 \

Loading…
Cancel
Save