Skip to content

Commit

Permalink
Use new nodejs install process (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Dec 22, 2023
1 parent c56933e commit 92087c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand All @@ -49,7 +45,6 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64/v8
target: production
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@ ARG FRONTEND_APP_PATH="/app/frontend"

FROM ${BUILDER_IMAGE} as base

ENV NODE_URL=https://deb.nodesource.com/setup_18.x
# Install node
ENV NODE_MAJOR=18

# Install curl as a prerequisite for nodejs:
RUN apt-get -y update && apt-get install -y curl
RUN apt-get -y update

RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

RUN 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

# install build dependencies
RUN curl -fsSL $NODE_URL | bash - && \
apt-get install -y nodejs \
RUN apt-get update && apt-get install -y nodejs \
build-essential \
inotify-tools \
postgresql-client \
Expand Down

0 comments on commit 92087c8

Please sign in to comment.