mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
17 lines
738 B
Docker
17 lines
738 B
Docker
FROM cgr.dev/mattermost.com/go-msft-fips:1.26.3-dev@sha256:48ab99fede7fb33e132a0636072971e1ec4a69520865bfa1e4b517ee9cfdef34
|
|
ARG NODE_VERSION=20.11.1
|
|
|
|
RUN apk add curl ca-certificates mailcap unrtf wv poppler-utils tzdata gpg xmlsec
|
|
|
|
# Download and install node via nvm
|
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
|
|
RUN bash -c "source /root/.nvm/nvm.sh && nvm install $NODE_VERSION && nvm use $NODE_VERSION && nvm alias default $NODE_VERSION"
|
|
|
|
# Make node and npm globally available
|
|
ENV PATH="/root/.nvm/versions/node/v$NODE_VERSION/bin:$PATH"
|
|
|
|
RUN git config --global --add safe.directory /mattermost
|
|
|
|
# Remove any existing entrypoint, and use bash as the default command
|
|
ENTRYPOINT []
|
|
CMD ["bash"]
|