2023-01-10 20:20:18 +07:00
|
|
|
FROM cubetiq/calpine-node:slim
|
2021-03-29 13:57:53 +07:00
|
|
|
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
|
2022-08-25 11:50:36 +07:00
|
|
|
ENV PNPM_HOME=/root/.local/share/pnpm
|
|
|
|
ENV PATH=$PATH:$PNPM_HOME
|
2021-03-29 13:57:53 +07:00
|
|
|
|
2022-08-25 11:50:36 +07:00
|
|
|
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
|
|
|
|
2022-08-25 11:50:36 +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)" \
|
2022-08-25 11:50:36 +07:00
|
|
|
&& echo "PNPM: $(pnpm --version)"
|
2021-03-29 13:57:53 +07:00
|
|
|
|
|
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
|
|
|
2021-03-29 14:08:42 +07:00
|
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
|
2021-03-29 13:57:53 +07:00
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|
|
|
|
|
2022-11-15 14:45:45 +07:00
|
|
|
CMD [ "node" ]
|