mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
18 lines
740 B
Docker
18 lines
740 B
Docker
FROM cgr.dev/mattermost.com/go-msft-fips:1.26.4.1-dev@sha256:e237532162e2a755fef5944d2fcaff02923752c754a5d7b60836b7a8aa682317
|
|
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"]
|