calpine-node/Dockerfile

34 lines
865 B
Docker
Raw Normal View History

2023-01-10 20:20:18 +07:00
FROM cubetiq/calpine-node:slim
LABEL maintainer="sombochea@cubetiqs.com"
2023-01-10 20:20:18 +07:00
# Install PNPM
2023-04-10 19:46:01 +07:00
ARG PNPM_VERSION=8.2.0
ENV PNPM_HOME=/root/.local/share/pnpm
ENV PATH=$PATH:$PNPM_HOME
RUN echo "Installing PNPM version: $PNPM_VERSION" && \
apk add --no-cache curl && \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v${PNPM_VERSION}/pnpm-linuxstatic-x64" -o /bin/pnpm && chmod +x /bin/pnpm && \
apk del curl
2023-02-03 19:56:42 +07:00
# Update NPM package
RUN npm install -g npm@latest
2022-08-30 20:44:34 +07:00
# Install yarn from npm package
2023-02-03 19:56:42 +07:00
RUN npm -g i yarn@latest
2022-08-30 20:44:34 +07:00
# Checking packages version
RUN echo "NODE: $(node --version)" \
&& echo "NPM: $(npm --version)" \
&& echo "NPX: $(npx --version)" \
2022-08-30 20:44:34 +07:00
&& echo "YARN: $(yarn --version)" \
&& echo "PNPM: $(pnpm --version)"
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
2022-11-15 14:45:45 +07:00
CMD [ "node" ]