Skip to content

Commit

Permalink
Merge pull request #11 from LordChunk/fix/nodejs-installation
Browse files Browse the repository at this point in the history
Upgraded Node.js to 18 LTS
  • Loading branch information
LordChunk authored Sep 20, 2023
2 parents e4e05c5 + a6483ed commit 16a8823
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- cron: "0 0 * * 0"
push:
branches: [ main ]
pull_request:

jobs:
matrix:
runs-on: ubuntu-latest
Expand Down
15 changes: 10 additions & 5 deletions templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ FROM %FROM%

WORKDIR /var/www

# NodeJS
RUN curl -o- https://deb.nodesource.com/setup_16.x | bash

# Dependencies
RUN apt-get update && apt-get install -y git nginx xz-utils nodejs
# Install Node.js from nodesource.com
ENV NODE_MAJOR=18

RUN apt update && \
apt install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt update && \
apt install -y git nginx xz-utils nodejs

# S6 Overlay
ARG OVERLAY_VERSION="v3.1.1.2"
Expand Down

0 comments on commit 16a8823

Please sign in to comment.