diff --git a/Dockerfile b/Dockerfile index cdd4158..70fce72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ FROM golang:1.21.4-alpine AS builder -WORKDIR /src/ -COPY . . -RUN go get -d -v ./... -RUN go build -o liquidator + WORKDIR /src/ + COPY . . + RUN go get -d -v ./... + RUN go build -o liquidator FROM alpine:latest -RUN apk --no-cache add ca-certificates -WORKDIR /src/ -COPY --from=builder /src/liquidator . - -EXPOSE 9000 - -ENTRYPOINT ["./liquidator"] + RUN adduser -D ep + RUN apk --no-cache add ca-certificates + USER ep + WORKDIR /home/ep + COPY --from=builder /src/liquidator /usr/bin/liquidator + EXPOSE 9000 + ENTRYPOINT ["liquidator"] \ No newline at end of file