Compare commits

..

2 Commits

Author SHA1 Message Date
Steve White bddbd2b090 Updating stuff 2024-10-29 13:22:58 -05:00
Steve White e08a9b406d fixed Dockerfil, experimenting with caching 2024-10-26 23:14:49 -05:00
4 changed files with 8 additions and 5 deletions

View File

@ -13,6 +13,7 @@ boxes-api/bin
# Ignore Git and other version control system files
.git
.gitignore
.cache
# Ignore Docker's own files
.dockerignore
@ -23,4 +24,4 @@ Dockerfile.update
# Ignore other miscellaneous files
README.md
LICENSE
test.bash
test.bash

View File

@ -17,10 +17,12 @@ FROM golang:latest
WORKDIR /app
COPY boxes-api/go.mod ./
COPY boxes-api/go.sum ./
RUN go mod download
RUN --mount=type=cache,target="./.cache/go-mod" go mod download
COPY boxes-api/. ./
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 .
COPY --from=fe-builder /app/build /app/build
EXPOSE 8080
CMD ["./boxes-api"]
CMD ["/app/boxes-api"]

@ -1 +1 @@
Subproject commit 76a03cda573f415c7dd1de64823037dc683bf98b
Subproject commit c604251b7aba556a960c2862fafa859b96411e85

@ -1 +1 @@
Subproject commit 158d52dab4a633ddd972de5cc63b5f62564b4877
Subproject commit 31eb7c04391188c9a2e80b6783efb172aedaa2ee