Skip to content

Conversation

@GZLiew
Copy link
Contributor

@GZLiew GZLiew commented Jan 16, 2023

No description provided.

Comment on lines +1 to +20
ARG NODE_VERSION=18
FROM node:${NODE_VERSION}

# zip
RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/*

# aws
ARG TARGETPLATFORM
RUN echo "${TARGETPLATFORM}"
RUN if (echo "${TARGETPLATFORM}" | grep arm64); \
then curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2-aarch64.zip" && unzip awscliv2-aarch64.zip; \
else curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2-x86_64.zip" && unzip awscliv2-x86_64.zip; \
fi
RUN ./aws/install
RUN aws --version

# jq
RUN apt-get update && \
apt-get install --assume-yes --no-install-recommends jq && \
rm -rf /var/lib/apt/lists/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Is it possible to reuse the Dockerfile for the node16 based image and supply the node version as a build arg? Maybe the image tag could reflect the version of node packaged within?

@GZLiew GZLiew merged commit 8ee4319 into main Jan 17, 2023
@GZLiew GZLiew deleted the gz/DOCKER-25/node18/1 branch January 17, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants