Skip to content

Commit

Permalink
Add build nodesjs-20-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
lutfailham96 committed Dec 8, 2024
1 parent 8600b54 commit 5fa55d6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
35 changes: 35 additions & 0 deletions nodejs/Dockerfile-20_alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM alpine:3.16

LABEL org.opencontainers.image.authors="EWZ Engineering <engineering@mytens.co.id>" \
io.k8s.description="Alpine (3.16) Node.js 20" \
io.k8s.display-name="Alpine (3.16) Node.js 20" \
io.openshift.non-scalable="false" \
io.openshift.tags="runner,builder,alpine,nodejs" \
summary="Virtual Machine (VM) like container platform with Node.js 20" \
vendor="Alpine" \
release="1"

ENV LANG="C.UTF-8" \
LC_ALL="C.UTF-8" \
TZ="Asia/Jakarta"

WORKDIR /usr/src/app

# Install Node.js
ENV NODE_VERSION="20.18.1"
COPY install_nodejs_alpine.sh .
RUN /bin/sh install_nodejs_alpine.sh

# Install yarn
ENV YARN_VERSION="1.22.19"
COPY install_yarn_alpine.sh .
RUN /bin/sh install_yarn_alpine.sh

# Custom configuration for Alpine Linux
COPY configure_alpine.sh .
RUN /bin/sh configure_alpine.sh

COPY docker-entrypoint.sh /usr/local/bin

ENTRYPOINT ["docker-entrypoint.sh"]

3 changes: 2 additions & 1 deletion nodejs/install_nodejs_alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ else \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
A48C2BEE680E841632CD4E44F07496B3EB3C1762 \
108F52B48DB57BB0CC439B2997B01419BD92F80A \
B9E2F5981AA6E0CD28160D9FF13993A75599653C; \
B9E2F5981AA6E0CD28160D9FF13993A75599653C \
CC68F5A3106FF448322E48ED27F5E38D5B0A215F; \
do \
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "${key}" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${key}"; \
done; \
Expand Down

0 comments on commit 5fa55d6

Please sign in to comment.