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
|
||||
# script. Using docker to build this file directly will fail.
|
||||
|
||||
FROM alpine:3.16
|
||||
FROM ubuntu:latest
|
||||
|
||||
WORKDIR /
|
||||
|
||||
@ -11,6 +11,6 @@ ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
COPY ./bin/${TARGETOS}-${TARGETARCH}/corso ./
|
||||
|
||||
USER nonroot:nonroot
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT ["/corso"]
|
||||
|
||||
@ -20,10 +20,10 @@ ARG TARGETARCH
|
||||
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /corso .
|
||||
|
||||
## Deploy
|
||||
FROM alpine:3.16
|
||||
FROM ubuntu:latest
|
||||
|
||||
COPY --from=build /corso /
|
||||
|
||||
USER nonroot:nonroot
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT ["/corso"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user