quick fix on image/user pair for images (#961)
## Type of change - [x] 🐛 Bugfix ## Test Plan - [x] 💪 Manual
This commit is contained in:
parent
b57829cc05
commit
dfdd162943
@ -3,7 +3,7 @@
|
|||||||
# This dockerfile is configured to be run by the /corso/build/build-container.sh
|
# This dockerfile is configured to be run by the /corso/build/build-container.sh
|
||||||
# script. Using docker to build this file directly will fail.
|
# script. Using docker to build this file directly will fail.
|
||||||
|
|
||||||
FROM alpine:3.16
|
FROM ubuntu:latest
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
@ -11,6 +11,6 @@ ARG TARGETOS
|
|||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
COPY ./bin/${TARGETOS}-${TARGETARCH}/corso ./
|
COPY ./bin/${TARGETOS}-${TARGETARCH}/corso ./
|
||||||
|
|
||||||
USER nonroot:nonroot
|
USER nobody
|
||||||
|
|
||||||
ENTRYPOINT ["/corso"]
|
ENTRYPOINT ["/corso"]
|
||||||
|
|||||||
@ -20,10 +20,10 @@ ARG TARGETARCH
|
|||||||
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /corso .
|
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /corso .
|
||||||
|
|
||||||
## Deploy
|
## Deploy
|
||||||
FROM alpine:3.16
|
FROM ubuntu:latest
|
||||||
|
|
||||||
COPY --from=build /corso /
|
COPY --from=build /corso /
|
||||||
|
|
||||||
USER nonroot:nonroot
|
USER nobody
|
||||||
|
|
||||||
ENTRYPOINT ["/corso"]
|
ENTRYPOINT ["/corso"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user