mirror of
https://github.com/stevenhowes/osgrid-server.git
synced 2026-05-26 15:53:42 +01:00
Prevent 1GB source code from staying in the image
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ EXPOSE 9090
|
||||
WORKDIR /go/src/osgrid-server
|
||||
|
||||
COPY go.mod *.go ./
|
||||
RUN go install -v ./... && sha256sum /go/bin/osgrid-server
|
||||
RUN go install -v ./... && sha256sum /go/bin/osgrid-server && cd /go && rm -rf /go/src /go/pkg
|
||||
|
||||
CMD [ "/go/bin/osgrid-server" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user