Skip to content

Commit

Permalink
nodejs 20,21 go 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
EgoMaw committed Nov 11, 2023
1 parent b671cf2 commit afcabe4
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 30 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
matrix:
tag:
#- 12 - DEPRECATED
- 14
- 16
- 17
- 18
- 19
- '14'
- '18'
- '19'
- '20'
- '21'
steps:
- uses: actions/checkout@v4
# Setup QEMU for ARM64 Build
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ these images on an arm system, no modification to them or the tag is needed, the
* `ghcr.io/egomaw/yolks:go_1.19`
* [`Go 1.20`](/go/1.20)
* `ghcr.io/egomaw/yolks:go_1.20`
* [`Go 1.21`](/go/1.21)
* `ghcr.io/egomaw/yolks:go_1.21`

### [Java](/java)

Expand Down Expand Up @@ -135,14 +137,14 @@ Replace {{distribution}} with the one you want from above.
* `ghcr.io/egomaw/yolks:nodejs_12`
* [`Node 14`](/nodejs/14)
* `ghcr.io/egomaw/yolks:nodejs_14`
* [`Node 16`](/nodejs/16)
* `ghcr.io/egomaw/yolks:nodejs_16`
* [`Node 17`](/nodejs/17)
* `ghcr.io/egomaw/yolks:nodejs_17`
* [`Node 18`](/nodejs/18)
* `ghcr.io/egomaw/yolks:nodejs_18`
* [`Node 19`](/nodejs/19)
* `ghcr.io/egomaw/yolks:nodejs_19`
* [`Node 20`](/nodejs/20)
* `ghcr.io/egomaw/yolks:nodejs_20`
* [`Node 21`](/nodejs/21)
* `ghcr.io/egomaw/yolks:nodejs_21`

### [PostgreSQL](/postgres)

Expand Down
16 changes: 16 additions & 0 deletions go/1.21/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM --platform=$TARGETOS/$TARGETARCH golang:1.21-alpine

LABEL author="EgoMaw" maintainer="[email protected]"

LABEL org.opencontainers.image.source="https://github.com/egomaw/yolks"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates tzdata gettext \
&& adduser -D -h /home/container container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY --chown=container --chmod=555 ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
16 changes: 0 additions & 16 deletions nodejs/17/Dockerfile

This file was deleted.

9 changes: 4 additions & 5 deletions nodejs/16/Dockerfile → nodejs/20/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM --platform=$TARGETOS/$TARGETARCH node:16-slim

FROM --platform=$TARGETOS/$TARGETARCH node:20-slim
LABEL author="EgoMaw" maintainer="[email protected]"

RUN apt update \
&& apt-get --no-install-recommends -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping gettext-base \
RUN apt-get update \
&& apt-get -y --no-install-recommends install gettext-base ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool \
&& useradd -m -d /home/container container

RUN corepack prepare pnpm@latest npm@latest yarn@stable --activate && corepack enable
RUN corepack prepare pnpm@latest npm@latest yarn@stable && corepack enable

USER container
ENV USER=container HOME=/home/container
Expand Down
15 changes: 15 additions & 0 deletions nodejs/21/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM --platform=$TARGETOS/$TARGETARCH node:21-slim
LABEL author="EgoMaw" maintainer="[email protected]"

RUN apt-get update \
&& apt-get -y --no-install-recommends install gettext-base ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool \
&& useradd -m -d /home/container container

RUN corepack prepare pnpm@latest npm@latest yarn@stable && corepack enable

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY --chown=container --chmod=555 ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]

0 comments on commit afcabe4

Please sign in to comment.