Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- "main"

env:
ALPINE_VERSION: "3.20"
ALPINE_VERSION: "3.22"

jobs:
docker-build:
Expand All @@ -21,7 +21,7 @@ jobs:

strategy:
matrix:
node-version: [14.19.1, 18, 19, 20, 20.13.1, 20.17.0, 22.11.0, 23.4.0] # Node.js versions
node-version: [20.19.5, 22.21.1, 24.11.0, 25.1.0] # Node.js versions

steps:
- name: Checkout Code
Expand Down
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ ARG NODE_VERSION=current
ARG ALPINE_VERSION=latest

# Base images
FROM node:${NODE_VERSION}-alpine AS node
FROM alpine:${ALPINE_VERSION}
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node

# Set version variables
ARG DOCKERIZE_VERSION="v0.8.0"
ARG S6_OVERLAY_VERSION="v3.2.0.2"
ARG DOCKERIZE_VERSION="v0.9.6"
ARG S6_OVERLAY_VERSION="v3.2.1.0"
ARG S6_OVERLAY_ARCH="x86_64"

# Install dependencies and tools
Expand Down Expand Up @@ -36,12 +35,6 @@ RUN apk add --no-cache \
apk del --purge build-dependencies && \
rm -rf /tmp/*

# Add Node.js libraries from the Node image
COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/lib /usr/local/lib
COPY --from=node /usr/local/include /usr/local/include
COPY --from=node /usr/local/bin /usr/local/bin

# Add S6 Overlay
RUN wget -qO- https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz | tar -C / -Jx && \
wget -qO- https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz | tar -C / -Jx && \
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-node-app/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e

cd /app || exit 1
# start our node.js application
npm start
npm start 2>&1