fixed Dockerfil, experimenting with caching
This commit is contained in:
parent
0e9b3c5209
commit
e08a9b406d
|
@ -13,6 +13,7 @@ boxes-api/bin
|
||||||
# Ignore Git and other version control system files
|
# Ignore Git and other version control system files
|
||||||
.git
|
.git
|
||||||
.gitignore
|
.gitignore
|
||||||
|
.cache
|
||||||
|
|
||||||
# Ignore Docker's own files
|
# Ignore Docker's own files
|
||||||
.dockerignore
|
.dockerignore
|
||||||
|
|
|
@ -20,7 +20,9 @@ COPY boxes-api/go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY boxes-api/. ./
|
COPY boxes-api/. ./
|
||||||
ENV CGO_ENABLED=1
|
ENV CGO_ENABLED=1
|
||||||
|
#ENV GOCACHE=./.cache/go-build
|
||||||
|
#RUN --mount=type=cache,target="./.cache/go-build" go build -o boxes-api .
|
||||||
RUN go build -o boxes-api .
|
RUN go build -o boxes-api .
|
||||||
COPY --from=fe-builder /app/build /app/build
|
COPY --from=fe-builder /app/build /app/build
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["./boxes-api"]
|
CMD ["/app/boxes-api"]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 76a03cda573f415c7dd1de64823037dc683bf98b
|
Subproject commit d0eb8f733c25dbb13d09613ec6f393c6299104fd
|
Loading…
Reference in New Issue