Initial commit of files

This commit is contained in:
Jamie Curnow
2021-04-28 12:11:55 +10:00
parent 24fa22ba4f
commit b51a2a5efd
12 changed files with 481 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} jc21/nginx-full:${BASE_TAG:-latest}
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
ARG TARGETPLATFORM
RUN echo "Node: jc21/nginx-full:${BASE_TAG:-latest}, ${TARGETPLATFORM:-linux/amd64}" >> /built-for-arch
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
RUN curl -fsSL https://deb.nodesource.com/setup_15.x | bash - \
&& apt-get update \
&& apt-get install -y gcc make g++ git nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g yarn
# Check nodejs works on this architecture
COPY ./files/test.js /tmp/test.js
RUN node /tmp/test.js \
&& rm -f /tmp/test.js