diff --git a/Dockerfile b/Dockerfile index 2a958d3..1463ba0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,12 @@ RUN go build -o /serve cmd/serve.go FROM alpine:latest -COPY --from=build /serve / +RUN adduser -u 1000 -D app app + +USER app + +COPY --from=build /serve /home/app/serve EXPOSE 8080 -ENTRYPOINT ["/serve"] \ No newline at end of file +ENTRYPOINT ["/home/app/serve"] \ No newline at end of file