Skip to content

Commit

Permalink
Revert "[CLD-8390]Fix cloud user home dir (#1077)" (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrleite authored Sep 30, 2024
1 parent 81fc21e commit e2d6ec3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ LABEL name="Mattermost Cloud" \

ENV CLOUD=/mattermost-cloud/cloud \
USER_UID=10001 \
USER_NAME=cloud \
HOME=/mattermost-cloud
USER_NAME=cloud

RUN apk update && apk add libc6-compat \
ca-certificates \
mandoc \
aws-cli \
shadow \
&& rm -rf /var/cache/apk/*
COPY --from=build /mattermost-cloud/build/terraform /usr/local/bin/
COPY --from=build /mattermost-cloud/build/kops /usr/local/bin/
Expand All @@ -46,11 +44,11 @@ COPY --from=build /mattermost-cloud/helm-charts /mattermost-cloud/helm-charts
COPY --from=build /mattermost-cloud/manifests /mattermost-cloud/manifests
COPY --from=build /mattermost-cloud/build/_output/${TARGETARCH}/bin/cloud /mattermost-cloud/cloud
COPY --from=build /mattermost-cloud/build/bin /usr/local/bin
RUN useradd ${USER_NAME} -u ${USER_UID} -d ${HOME} -s /sbin/nologin
RUN chown -R ${USER_UID}:${USER_UID} /mattermost-cloud/
RUN /usr/local/bin/user_setup
WORKDIR /mattermost-cloud/

USER ${USER_NAME}
USER ${USER_UID}

EXPOSE 8075
EXPOSE 8076
Expand Down

0 comments on commit e2d6ec3

Please sign in to comment.