Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
/test.sh
/tmp/
/tools/
/vendor/
/version.sh
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ RUN apk --no-cache update && \
adduser -D tidepool && \
chown -R tidepool /go/src/github.com/tidepool-org/clinic
USER tidepool
RUN go install github.com/air-verse/air@v1.52.2
RUN --mount=type=cache,target=$HOME/.cache/go-build go install github.com/air-verse/air@v1.52.2
COPY --chown=tidepool . .
RUN ./build.sh
RUN --mount=type=cache,target=$HOME/.cache/go-build ./build.sh
CMD ["air"]

# Production
Expand All @@ -22,7 +22,7 @@ RUN apk --no-cache update && \
chown -R tidepool /go/src/github.com/tidepool-org/clinic
USER tidepool
COPY --chown=tidepool . .
RUN ./build.sh
RUN --mount=type=cache,target=$HOME/.cache/go-build ./build.sh
WORKDIR /go/src/github.com/tidepool-org/clinic/dist
CMD ["./clinic"]