Reduce Image Sizes & Uniform Dockerfiles (#152)

jobatzil/rename
Johannes Batzill 2023-06-20 15:51:29 +00:00 committed by Harness
parent a9535c7a32
commit 7a5c2ca021
1 changed files with 3 additions and 4 deletions

View File

@ -72,13 +72,12 @@ FROM alpine/git:2.36.3 as final
RUN adduser -u 1001 -D -h /app iamuser
# setup app dir and its content
WORKDIR /app
RUN chown -R 1001:1001 /app
COPY --from=builder --chown=1001:1001 --chmod=700 /app/gitness /app/gitness
COPY --from=cert-image /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/gitness /app/gitness
RUN chown -R 1001:1001 /app
RUN chmod -R 700 /app/gitness
EXPOSE 3000
EXPOSE 3001